N.B. You do not need to install live-initramfs
on your system to create customised Debian Live systems. However, doing so will do no harm.
To modify the code you can follow the process below. Please ensure you are familiar with the terms mentioned in Section 1.1.1, “Terms”.
Checkout the live-initramfs
source
$ git clone git://git.debian.net/git/debian-live/live-initramfs.git
Make changes to your local copy
And beware that if you want to add your pre-init script in live-bottom, you should name it without dashes '-', e.g: call it "81new_feature" and not "81new-feature".
Build a live-initramfs
.deb
You must build either on your target distribution or in a chroot containing your target platform: this means if your target is lenny then you should build against lenny. You can use a personal builder such as pbuilder to automate building packages in chroot. To build directly on the target platform, use dpkg-buildpackage (provided by the dpkg-dev package):
$ cd live-initramfs $ dpkg-buildpackage -rfakeroot -b -uc -us
Use the generated live-initramfs
.deb
As live-initramfs
is installed by the build system, installing the package in the host system is not sufficient: you should treat the generated .deb like another custom package. Please see Section 5.1.4, “Installing modified or third-party packages” for more information. You should pay particular attention to Section 5.1.4.3, “Custom packages and APT”.
You can let live-helper
automatically use the latest snapshot of live-initramfs
by configuring a third-party repository in your live-system configuration. Assumed you have already created a configuration tree with lh_config
Create a sources.list entry for the chroot stage:
echo "deb http://live.debian.net/debian/ ./" > config/chroot_sources/live-snapshots.chroot
Create a sources.list entry fro the binary stage:
cp config/chroot_sources/live-snapshots.chroot config/chroot_sources/live-snapshots.binary
Fetch the archive signing key:
wget http://live.debian.net/debian/archive-key.asc -O config/chroot_sources/live-snapshots.chroot.gpg cp config/chroot_sources/live-snapshots.chroot.gpg config/chroot_sources/live-snapshots.binary.gpg