On Tue, 2010-06-22 at 02:05 +0200, Michael Prokop wrote: > Thanks for reporting. We're not yet sure what might be the best > approach to distinguish between different compression versions but > could you please provide output of: > > dd if=/boot/initrd.img-2.6.33 bs=1 count=8 | od > > to us so we can evaluate a possible solution? I can do so this evening,...
but let me suggest, to simply use file and not try to find out this manually. Of course this would add you an ugly depends, but you could e.g. make the uncompress command configurable via command line switch, and if nothing is given ("auto") and file/libmagic is there, that is used. Hardcoding that has always the problem that you have to keep track on many possible changes. Cheers, Chris.
smime.p7s
Description: S/MIME cryptographic signature