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

2011-09-07 Thread Daniel Baumann

On 08/16/2011 11:05 AM, Ben Armstrong wrote:

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?


yes, but for now, i've added the ugly case thing. we should improve that 
later on and use a consistent scheme for this (and all other cases where 
the same is necessary too).


--
Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:  daniel.baum...@progress-technologies.net
Internet:   http://people.progress-technologies.net/~daniel.baumann/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2011-08-16 Thread Martin Pitt
Package: live-build
Version: 3.0~a29-1

Hello,

building a live CD with the experimental version currently fails with

$ sudo /usr/share/live/build/scripts/build/lb_binary_disk
P: Begin installing disk information...

gzip: ../binary/casper/initrd.img-3.0.0-8-generic: not in gzip format
cpio: verfrühtes Ende des Archivs

This happens when I leave LB_INITRAMFS_COMPRESSION to the default (which is
lzma) instead of setting it to gzip.

./scripts/build/lb_binary_disk calls

zcat ../../${INITRD} | cpio --quiet -id conf/uuid.conf

which assumes that the initramfs is in gzip format.

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?

Thanks,

Martin

-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


signature.asc
Description: Digital signature


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

2011-08-16 Thread Ben Armstrong
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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org