From 6541b70b853020c3966ea964467c4f89de0c6056 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 2 Jul 2010 00:01:06 +0000 Subject: Update to util-linix-ng-2.18 Exapand and reformat notes concerning grub.cfg git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9330 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/grub.xml | 48 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 8 deletions(-) (limited to 'chapter08') diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 08ba1c4e5..cf0b4fbe4 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -109,7 +109,7 @@ set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### -menuentry "GNU/Linux, Linux 2.6.30.2-lfs65" { +menuentry "GNU/Linux, Linux 2.6.34-lfs" { insmod ext2 set root=(hd0,2) search --no-floppy --fs-uuid --set 915852a7-859e-45a6-9ff0-d3ebfdb5cea2 @@ -147,13 +147,45 @@ menuentry "GNU/Linux, Linux 2.6.28-11-server (recovery mode)" { ### END /etc/grub.d/40_custom ### - Note that even though there is a warning not to edit the file, you can - do so as long as you do not re-run grub-mkconfig. The - search lines are not meaningful for LFS systems as that - command needs an initrd image for processing. If installing on a separate - partition the linux and initrd lines will not have the /boot on the file - names. In this example the kernel files for a Ubuntu installation are - also found in /boot. + + + Even though there is a warning not to edit the file, you + can do so as long as you do not re-run + grub-mkconfig. + + The search lines are generally not + useful for LFS systems as that command only sets an internal GRUB + variable used to find the kernel image. The set root + command provides the same capability without the overhead of + searching. + + The set root and + insmod ext2 commands can be moved out of the + menuentry sections to apply to all sections of the file. + This leads to a simple section like: + + +menuentry "Linux &linux-version;-lfs-&version;" { +linux /boot/vmlinux-&linux-version;-lfs-&version; root=/dev/sda2 ro +} + + + + + Passing a UUID to the kernel requires an initial ram disk + (initrd) not built by LFS. + + If the /boot partition is installed + on a separate partition, the linux and initrd lines should not have the + string /boot prefixed to the file + names. + + In this example the kernel files for a Ubuntu + installation are also found in /boot. + + + -- cgit v1.2.3-54-g00ecf