diff options
Diffstat (limited to 'bootable_iso.xml')
-rw-r--r-- | bootable_iso.xml | 24 |
1 files changed, 24 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> +<sect1> + <?dbhtml filename="bootable_iso.html"?> + <title>Making the ISO live system bootable</title> + <para>This chapter assume you use grub2 for your LFS. Issue the following to modify the file grub.cfg:</para> + <screen><userinput>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 +</userinput></screen> + <para>Rename kernel, according to menu.lst:</para> + <screen><userinput>mv -v boot/lfskernel-<version> boot/lfskernel</userinput></screen> + <para>Where <version> is your kernel version</para> + <para>Create our ISO::</para> + <screen><userinput>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</userinput></screen> + <para> Now, you can burn your image on a cd or dvd, and enjoy the livecd !</para> +</sect1> |