Debian Bug report logs - #627665
option to remove kernel+initrd from compressed filesystem

version graph

Package: live-build; Maintainer for live-build is Live Systems Maintainers <debian-live@lists.debian.org>; Source for live-build is src:live-build.

Reported by: Colin Watson <cjwatson@ubuntu.com>

Date: Mon, 23 May 2011 12:21:02 UTC

Severity: wishlist

Tags: patch

Found in version live-build/3.0~a17-1

Done: Daniel Baumann <daniel.baumann@progress-technologies.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#627665; Package live-build. (Mon, 23 May 2011 12:21:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Colin Watson <cjwatson@ubuntu.com>:
New Bug report received and forwarded. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Mon, 23 May 2011 12:21:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Colin Watson <cjwatson@ubuntu.com>
To: submit@bugs.debian.org
Subject: option to remove kernel+initrd from compressed filesystem
Date: Mon, 23 May 2011 13:19:20 +0100
[Message part 1 (text/plain, inline)]
Package: live-build
Version: 3.0~a17-1
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch oneiric

On the Ubuntu live CDs, we have a hack to save some space: rather than
shipping the kernel and initrd both in the ISO9660 filesystem (for
booting) and in the squashfs (for installing), we remove the duplicate
copies from the squashfs, and our installer is smart enough to copy
those files from the ISO9660 filesystem if it needs to.  This saves us
17MiB or so of CD space at the cost of a small amount of code
complexity.

We'll be able to get rid of this hack once we switch to GRUB as our CD
boot loader, since it can read files out of the squashfs directly; but
even so it seems like something other folks might find useful,
particularly if they're creating a live CD that isn't intended to be
installable.

The attached patch adds 'lb config --binary-remove-linux true'.  Feel
free to rename the option if some other name would fit better, though.

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]
[0001-Add-an-option-to-remove-the-kernel-and-initrd-from-t.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#627665; Package live-build. (Mon, 23 May 2011 19:51:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Colin Watson <cjwatson@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Mon, 23 May 2011 19:51:08 GMT) Full text and rfc822 format available.

Message #10 received at 627665@bugs.debian.org (full text, mbox):

From: Colin Watson <cjwatson@ubuntu.com>
To: 627665@bugs.debian.org
Subject: Re: Bug#627665: option to remove kernel+initrd from compressed filesystem
Date: Mon, 23 May 2011 20:49:42 +0100
[Message part 1 (text/plain, inline)]
On Mon, May 23, 2011 at 01:19:20PM +0100, Colin Watson wrote:
> The attached patch adds 'lb config --binary-remove-linux true'.  Feel
> free to rename the option if some other name would fit better, though.

I realised that making this work involved moving lb_binary_linux-image
before lb_binary_rootfs.  This doesn't seem to have any ill effects that
I can detect from reading the code, so I've attached an updated patch
that does this too.

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]
[0001-Add-an-option-to-remove-the-kernel-and-initrd-from-t.patch (text/x-diff, attachment)]

Reply sent to daniel.baumann@progress-technologies.net:
You have taken responsibility. (Mon, 13 Jun 2011 18:24:04 GMT) Full text and rfc822 format available.

Notification sent to Colin Watson <cjwatson@ubuntu.com>:
Bug acknowledged by developer. (Mon, 13 Jun 2011 18:24:04 GMT) Full text and rfc822 format available.

Message #15 received at 627665-done@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: 627665-done@bugs.debian.org, 627665-submitter@bugs.debian.org
Subject: Re: option to remove kernel+initrd from compressed filesystem
Date: Mon, 13 Jun 2011 20:21:52 +0200
Adding an own option just for excluding the kernel and initrd seems like
not worth it; rather, the already existing config/chroot_rootfs/excludes
should be used. that solves the task of excluding files in a generic way.

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




Message sent on to Colin Watson <cjwatson@ubuntu.com>:
Bug#627665. (Mon, 13 Jun 2011 18:24:05 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#627665; Package live-build. (Mon, 13 Jun 2011 18:39:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Colin Watson <cjwatson@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Mon, 13 Jun 2011 18:39:06 GMT) Full text and rfc822 format available.

Message #23 received at 627665@bugs.debian.org (full text, mbox):

From: Colin Watson <cjwatson@ubuntu.com>
To: daniel.baumann@progress-technologies.net, 627665@bugs.debian.org
Subject: Re: Bug#627665: option to remove kernel+initrd from compressed filesystem
Date: Mon, 13 Jun 2011 19:37:08 +0100
[Message part 1 (text/plain, inline)]
On Mon, Jun 13, 2011 at 08:21:52PM +0200, Daniel Baumann wrote:
> Adding an own option just for excluding the kernel and initrd seems like
> not worth it; rather, the already existing config/chroot_rootfs/excludes
> should be used. that solves the task of excluding files in a generic way.

That would work better if lb_rootfs passed -wildcards to mksquashfs.  As
it is, the excludes file is a poor fit for this because it doesn't
support wildcards when building a squashfs; the exact kernel/initrd
filenames change often.

(Note that the excludes file *does* support wildcards if squashfs isn't
being used.)

-- 
Colin Watson                                       [cjwatson@ubuntu.com]
[0001-Pass-wildcards-to-mksquashfs-if-using-an-excludes-fi.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#627665; Package live-build. (Mon, 13 Jun 2011 19:09:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to daniel.baumann@progress-technologies.net:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Mon, 13 Jun 2011 19:09:05 GMT) Full text and rfc822 format available.

Message #28 received at 627665@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: Colin Watson <cjwatson@ubuntu.com>
Cc: 627665@bugs.debian.org
Subject: Re: Bug#627665: option to remove kernel+initrd from compressed filesystem
Date: Mon, 13 Jun 2011 21:05:25 +0200
On 06/13/2011 08:37 PM, Colin Watson wrote:
> That would work better if lb_rootfs passed -wildcards to mksquashfs.

added in git, thanks.

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




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 12 Jul 2011 07:39:53 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 23:59:14 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.