This chapter assume you use grub for your LFS. Issue the following to modify the file menu.lst:
cat > boot/grub/menu.lst << "EOF" timeout 10 color black/cyan yellow/cyan default 0 title LIVECD root (cd) kernel /boot/lfskernel root=livecd ramdisk_size=16384 initrd /boot/initrd.gz EOF
Rename kernel, according to menu.lst:
mv -v boot/lfskernel-<version> boot/lfskernel
Where <version> is your kernel version
Copy eltorito file from grub:
cp -av /usr/lib/grub/i386-pc/stage2_eltorito boot/grub
It's time to install mkisofs, which is part of cdrecord, if you didn't already. Use the instructions provided by BLFS, to install it. You will then have to create a bootable image of the livesystem. First choose a directory where to store the image, then issue:
export ISODIR=<path to the choosen dir> cd $LIVECD mkisofs -R -l -allow-leading-dots -D -b boot/grub/stage2_eltorito \ -no-emul-boot -boot-load-size 4 -boot-info-table -o $ISODIR/livecd.iso $LIVECD && unset ISODIR
Now, you can burn your image on a cd or dvd, and enjoy the livecd !