From 7df987a652b93d55dd8eca363706d3bacc469b55 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 27 Nov 2014 16:29:31 -0600 Subject: Initial commit message for lfs live howto. --- book/bootable_usb.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 book/bootable_usb.html (limited to 'book/bootable_usb.html') 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 @@ + +7.1. Making the USB live system bootable

7.1. Making the USB live system bootable

This chapter assume you use grub2 for your LFS.

Install the GRUB files into /boot/grub, assuming you are installing LFS on sda[x]:

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

Issue the following to create the file grub.cfg:

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
+

Rename kernel, according to menu.lst:

mv -v boot/lfskernel-<version> boot/lfskernel

Where <version> is your kernel version

Enjoy the livekey !

-- cgit v1.2.3-54-g00ecf