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. --- book/bootable_iso.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 book/bootable_iso.html (limited to 'book/bootable_iso.html') diff --git a/book/bootable_iso.html b/book/bootable_iso.html new file mode 100644 index 0000000..cca52fc --- /dev/null +++ b/book/bootable_iso.html @@ -0,0 +1,11 @@ + +9.1. Making the ISO live system bootable

9.1. 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