Making a LiveCD of my Debian Wheezy installation
Is it possible to create a live CD of my Wheezy installation but without having to redownload all the packages?
I have been trying to find a command parameter for live-build which prevents the script from downloading all the packages: I only want a live image of my existing filesystem. However, because CDs/DVs are readonly, I have to change some configuration files before actually burning the iso onto a DVD. For sure I will need to edit the fstab file but I have no idea whether that would be enough. |
Normally live-build should make the changes that are needed for running the system as live-system.
The option are searching is for the config step: Code:
--bootstrap copy |
Thanks for your accurate and prompt reply.
The first attempt failed while attempting to read the filesystem (df). However, a second attempt seems to have worked but I still am without an iso! Code:
[...] Code:
/home/edbarx/work/binary/live# ls -l Code:
P: Begin install linux-image... Code:
work/chroot/boot# ls -l Any ideas as to how to circumvent? |
I chrooted to the chroot directory and manually installed a kernel there. After that, I issued these commands as shown:
Code:
work# /usr/share/live/build/scripts/build/lb_config --bootstrap copy Code:
work# ls -l |
Although the iso was created, its size, ~100 MB is ridiculously small. Something must have gone very wrong! :( Hopefully, I didn't bork my system when I was fiddling with chroot installing a kernel.
|
I am somewhat surprised about the order of the steps you have done:
1. the config stage usually happens only once, no need to launch it again. 2. When you want to chroot into the live system it is better to use the option that enbles you to chroot into the system when just before the squashfs and the iso are built, or to use the include directories to copy stuff to the system. 3. A live system usually needs no kernel, but only kernel modules in the squashfs. The kernel is started by the bootloader directly from the CD. |
I tried for a second time with a default configuration. The result is a failure to produce a .iso file! It seems Wheezy does not want me to have it portable.
This is the response of rerunning lb build: Code:
work# lb build Post Scriptum: Since this time I used the default settings, I am concluding the failure to create an iso is due to the error: Code:
Building dependency tree... Done Post Scriptum II: Since I have a functioning Wheezy installation, is it possible that I use squashfs to compress it into an archive and create a Live CD from it? The problem is that I have no idea which configuration files I have to edit. Does it make sense to boot the compressed fs as read only to avoid the OS attempting to write to convfiguration files? Thanks for trying to guide me. |
All times are GMT -5. The time now is 05:33 AM. |