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

Re: Live Build - redundancy

Long ago I had suggested that we should use binary iso DVDs in places where network bandwidth is issue.

--sent from mobile--
हर्षद जोशी

On 14-Jun-2014 4:42 AM, "Jason Hsu" <jhsu802701@jasonhsu.com> wrote:
I tried out the live build script for generating Debian Live Wheezy, and I've looked at the source code.

The script generates the ISOs for every edition: standard, rescue, LXDE, Xfce, etc.  For each edition, the script goes through EVERY stage: debootstrap, adding packages to the chroot setup, and generating the ISO file.

Wouldn't it be more efficient to save the chroot setup at certain stages?  Given that each edition of Debian Live shares many of the same components, wouldn't it make sense to copy the chroot setup rather than have to rebuild it multiple times?  The procedure I'm thinking of would be something like this:
1.  Create the standard edition like before, but KEEP the chroot directory that is the basis for the ISO.
2.  Copy the standard edition's chroot directory for use in the rescue edition.  Add the rescue edition packages and then create the ISO file.  To save disk space, delete the rescue edition's chroot directory, as it is no longer needed.
3.  Repeat step 2 for each of the other editions.
4.  To save disk space, delete the standard edition's chroot directory.

By reusing the standard edition's chroot directory, we don't have to keep repeating the debootstrap stage, and we don't have to install the standard edition's packages over and over again.  This should save a substantial amount of time in a VERY long process.

Jason Hsu <jhsu802701@jasonhsu.com>

To UNSUBSCRIBE, email to debian-live-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20140613181150.ee2c8def503152967f24d746@jasonhsu.com" target="_blank">https://lists.debian.org/20140613181150.ee2c8def503152967f24d746@jasonhsu.com

Reply to: