Live Build - redundancy
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 <firstname.lastname@example.org>