blob: 13e20ad8761916734fca2cf8b1c097b63e1594fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!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>7.1.�Making the USB 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�7.�Making the USB live system bootable</h3><ul><li class="prev"><a accesskey="p" href="ch07.html" title="Making the USB live system bootable">Prev</a><p>Making the USB live system bootable</p></li><li class="next"><a accesskey="n" href="pt06.html" title="the ISO live system">Next</a><p>the ISO live system</p></li><li class="up"><a accesskey="u" href="ch07.html" title="Chapter�7.�Making the USB 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">7.1. Making the USB live system bootable</h1><p>This chapter assume you use grub2 for your LFS.</p><p>Install the GRUB files into /boot/grub, assuming you are installing LFS on sda[x]:</p><pre class="userinput"><kbd class="command">mount --bind /dev $LFSMOUNT/dev
mount --bind /sys $LFSMOUNT/sys
mount --bind /proc $LFSMOUNT/proc
chroot $LFSMOUNT
grub-install /dev/sda
exit
umount $LFSMOUNT/proc
umount $LFSMOUNT/sys
umount $LFSMOUNT/dev</kbd></pre><p>Issue the following to create 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 rootdelay=10" >> 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>Enjoy the livekey !</p></div><div class="navfooter"><ul><li class="prev"><a accesskey="p" href="ch07.html" title="Making the USB live system bootable">Prev</a><p>Making the USB live system bootable</p></li><li class="next"><a accesskey="n" href="pt06.html" title="the ISO live system">Next</a><p>the ISO live system</p></li><li class="up"><a accesskey="u" href="ch07.html" title="Chapter�7.�Making the USB 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>
|