From 7df987a652b93d55dd8eca363706d3bacc469b55 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 27 Nov 2014 16:29:31 -0600 Subject: Initial commit message for lfs live howto. --- bootable_iso.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bootable_iso.xml (limited to 'bootable_iso.xml') diff --git a/bootable_iso.xml b/bootable_iso.xml new file mode 100644 index 0000000..f991079 --- /dev/null +++ b/bootable_iso.xml @@ -0,0 +1,24 @@ + + + + + Making the ISO live system bootable + This chapter assume you use grub2 for your LFS. Issue the following to modify the file grub.cfg: + cd $LFSMOUNT +echo 'menuentry "LFS" {' > boot/grub/grub.cfg +echo " search -n -l $LFSLIVE -s" >> boot/grub/grub.cfg +echo " linux /boot/lfskernel root=LABEL=$LFSLIVE quiet" >> boot/grub/grub.cfg +echo " initrd /boot/initrd.gz" >> boot/grub/grub.cfg +echo "}" >> boot/grub/grub.cfg + + Rename kernel, according to menu.lst: + mv -v boot/lfskernel-<version> boot/lfskernel + Where <version> is your kernel version + Create our ISO:: + export ISODIR=<path to the dir where you want to store your ISO> +cd $LFSMOUNT +grub-mkrescue -o $ISODIR/livecd.iso -V $LFSLIVE $LFSMOUNT && +unset ISODIR + Now, you can burn your image on a cd or dvd, and enjoy the livecd ! + -- cgit v1.2.3-54-g00ecf