summaryrefslogtreecommitdiffstats
path: root/book/bootable_usb.html
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2014-11-27 16:29:31 -0600
committerWilliam Harrington <kb0iic@berzerkula.org>2014-11-27 16:29:31 -0600
commit7df987a652b93d55dd8eca363706d3bacc469b55 (patch)
tree17f84ce0fee76a3a0476b714eae09486ab2470e6 /book/bootable_usb.html
Initial commit message for lfs live howto.HEADmaster
Diffstat (limited to 'book/bootable_usb.html')
-rw-r--r--book/bootable_usb.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/book/bootable_usb.html b/book/bootable_usb.html
new file mode 100644
index 0000000..13e20ad
--- /dev/null
+++ b/book/bootable_usb.html
@@ -0,0 +1,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" {' &gt; boot/grub/grub.cfg
+echo " search -n -l $LFSLIVE -s" &gt;&gt; boot/grub/grub.cfg
+echo " linux /boot/lfskernel root=LABEL=$LFSLIVE quiet rootdelay=10" &gt;&gt; boot/grub/grub.cfg
+echo " initrd /boot/initrd.gz" &gt;&gt; boot/grub/grub.cfg
+echo "}" &gt;&gt; boot/grub/grub.cfg
+</kbd></pre><p>Rename kernel, according to menu.lst:</p><pre class="userinput"><kbd class="command">mv -v boot/lfskernel-&lt;version&gt; boot/lfskernel</kbd></pre><p>Where &lt;version&gt; 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>