blob: f9910797e4fafb83371e5f6336f78f21be245b92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>
|