[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#637979: live-build: Assumes gzipped initrd although the default is lzma



On 16/08/11 05:16 AM, Martin Pitt wrote:
> Unfortunately "file" does not (yet?) recognize an lzma stream, so
> perhaps this should do a "case" statement based on
> $LB_INITRAMFS_COMPRESSION, and use zcat vs. lzcat?

Similar to lb_chroot_hacks, I guess. Though the duplication gets tedious
after a while (I understand why in lb_chroot_hacks that's hard to avoid,
though). In the particular case of zcat, wouldn't it be better to have
ZCAT, or some such, set variously to zcat, bzcat or lzcat, depending on
LB_INITRAMFS_COMPRESSION and use that here instead of a case?

Ben



Reply to: