From 721f29eb03e1d4f4fe88e09964ebe383cc0d27ea Mon Sep 17 00:00:00 2001 From: Matěj Laitl Date: Tue, 11 Oct 2011 21:14:35 +0200 Subject: GRUB 2 Guide: move 'Pre-Configuring GRUB 2 to use EFI' section where it chronologically belongs --- docs/grub-2-guide.xml | 128 +++++++++++++++++++++++++------------------------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/docs/grub-2-guide.xml b/docs/grub-2-guide.xml index a28bea3..a0d1e8f 100644 --- a/docs/grub-2-guide.xml +++ b/docs/grub-2-guide.xml @@ -177,70 +177,7 @@ failed.
-Configuring GRUB 2 - - - -Gentoo installs all grub commands renamed to grub2. So if you read any other guide you -should replace all grub mentions with grub2 (grub-mkconfig -> grub2-mkconfig). - - -

-Compared to GRUB Legacy, GRUB 2 uses automatic generation to generate -all the required entries for you to boot. This is handled by grub2-mkconfig -command that probes your system for all the required data. Cooperating with -sys-boot/os-prober, it detects even other OSes on all disks. -

- - -If you updated from GRUB Legacy then your /boot/grub/menu.lst -was converted to /boot/grub2/grub.cfg to ensure that your system -can boot even if you forget to generate the config. Never the less you should -take time and migrate the configuration to be automatically generated, because -next time GRUB 2 is installed it will use automatic generation and ignore -GRUB Legacy files. - - -
-grub2-mkconfig -o /boot/grub2/grub.cfg
-
- -

-Tweaking the options is to be done in the /etc/defaults/grub file. -Simple text file configuration with description of some default values. -All the options are described in grub2 info pages. -

- - -This file is created by Gentoo and if you find an interesting option not used -in there just open a bugreport (possibly with a patch). - - -

-Sometimes, if automatic detection of GRUB 2 does not suffice, the file -/etc/grub.d/40_custom should be used to store custom entries. Full -description how to configure such with examples can be found in grub2 info -pages. -

- -
-menuentry "My Shiny Gentoo Kernel" {
-	set root=(hd0,1)
-	search --no-floppy --fs-uuid --set <UUID>
-	linux /boot/gentookernel-5.3.2-generic root=UUID=<UUID>
-	initrd /boot/initrd.img-5.3.2
-}
-
- - -Remember to replace the <UUID> with your device UUID. - - - -
- -
-Pre-Configuring GRUB 2 to use EFI +Variant B: Pre-Configuring GRUB 2 to use EFI

@@ -355,6 +292,69 @@ configuration.

+
+Configuring GRUB 2 + + + +Gentoo installs all grub commands renamed to grub2. So if you read any other guide you +should replace all grub mentions with grub2 (grub-mkconfig -> grub2-mkconfig). + + +

+Compared to GRUB Legacy, GRUB 2 uses automatic generation to generate +all the required entries for you to boot. This is handled by grub2-mkconfig +command that probes your system for all the required data. Cooperating with +sys-boot/os-prober, it detects even other OSes on all disks. +

+ + +If you updated from GRUB Legacy then your /boot/grub/menu.lst +was converted to /boot/grub2/grub.cfg to ensure that your system +can boot even if you forget to generate the config. Never the less you should +take time and migrate the configuration to be automatically generated, because +next time GRUB 2 is installed it will use automatic generation and ignore +GRUB Legacy files. + + +
+grub2-mkconfig -o /boot/grub2/grub.cfg
+
+ +

+Tweaking the options is to be done in the /etc/defaults/grub file. +Simple text file configuration with description of some default values. +All the options are described in grub2 info pages. +

+ + +This file is created by Gentoo and if you find an interesting option not used +in there just open a bugreport (possibly with a patch). + + +

+Sometimes, if automatic detection of GRUB 2 does not suffice, the file +/etc/grub.d/40_custom should be used to store custom entries. Full +description how to configure such with examples can be found in grub2 info +pages. +

+ +
+menuentry "My Shiny Gentoo Kernel" {
+	set root=(hd0,1)
+	search --no-floppy --fs-uuid --set <UUID>
+	linux /boot/gentookernel-5.3.2-generic root=UUID=<UUID>
+	initrd /boot/initrd.img-5.3.2
+}
+
+ + +Remember to replace the <UUID> with your device UUID. + + + +
+
Configuring with LVM -- cgit v1.2.3-65-gdbad