reopen 903931
severity 903931 wishlist
reassign 903931 initramfs-tools
retitle 903931 please use gzip instead of zcat in unmkinitramfs
thanks

Hi,

asking upstream about it, he sais:

"It seems that there are two ways of implementing *zcat programs out
there. The zcat from zutils is a complete implementation of a cat
program like the one from GNU coreutils[2] but with transparent
decompression. I have invested a lot of work to make it work well.

[2]
http://www.gnu.org/software/coreutils/manual/html_node/cat-invocation.html#cat-invocation

The rest of the *zcat programs out there seem to be just wrapper
scripts. The zcat from gzip boils down to 'exec gzip -cd "$@"'.

The problem, IMO, is in the xcpio() function of unmkinitramfs. It should
use 'gzip -t' instead of 'zcat -t', just as it already uses 'bzip2 -t'
and 'lzop -t'. Think that posix zcat does not document a -t option[3]
and therefore 'zcat -t' is not a portable way to check file integrity."

http://lists.nongnu.org/archive/html/zutils-bug/2018-07/msg00001.html

Therefore, reassigning this back to initramfs-tools with the suggestion,
that you use gzip -t instead of zcat -t.

Regards,
Daniel

Reply via email to