blob: cca52fc07243c7afbdd722fc0510694d89b3e8db (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>9.1.�Making the ISO live system bootable</title><link rel="stylesheet" href="stylesheets/lfs.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><link rel="stylesheet" href="stylesheets/lfs-print.css" type="text/css" media="print" /></head><body class="lfs" id="lfs-0.3"><div class="navheader"><h4>LFS live howto - Version 0.3</h4><h3>Chapter�9.�Making the ISO live system bootable</h3><ul><li class="prev"><a accesskey="p" href="ch09.html" title="Making the ISO live system bootable">Prev</a><p>Making the ISO live system bootable</p></li><li class="next"><a accesskey="n" href="pt07.html" title="References">Next</a><p>References</p></li><li class="up"><a accesskey="u" href="ch09.html" title="Chapter�9.�Making the ISO live system bootable">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div><div class="sect1" lang="en" xml:lang="en"><h1 class="sect1">9.1. Making the ISO live system bootable</h1><p>This chapter assume you use grub2 for your LFS. Issue the following to modify the file grub.cfg:</p><pre class="userinput"><kbd class="command">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
</kbd></pre><p>Rename kernel, according to menu.lst:</p><pre class="userinput"><kbd class="command">mv -v boot/lfskernel-<version> boot/lfskernel</kbd></pre><p>Where <version> is your kernel version</p><p>Create our ISO::</p><pre class="userinput"><kbd class="command">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</kbd></pre><p> Now, you can burn your image on a cd or dvd, and enjoy the livecd !</p></div><div class="navfooter"><ul><li class="prev"><a accesskey="p" href="ch09.html" title="Making the ISO live system bootable">Prev</a><p>Making the ISO live system bootable</p></li><li class="next"><a accesskey="n" href="pt07.html" title="References">Next</a><p>References</p></li><li class="up"><a accesskey="u" href="ch09.html" title="Chapter�9.�Making the ISO live system bootable">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div></body></html>
|