aboutsummaryrefslogtreecommitdiffstats
path: root/chapter10/grub.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-08-27 11:06:02 +0800
committerXi Ruoyao <xry111@xry111.site>2023-08-27 11:06:02 +0800
commit64e8131dd8bdc3baa33b0185c843cccddb4740b7 (patch)
tree2f1e04c310396532cb65712dd89afeb80d810747 /chapter10/grub.xml
parent9a5dab17c6e108ebbdd08881af5dde20475f7048 (diff)
parent11cfb5bc71de4fb7a77f369355dbca99e64ea16b (diff)
Merge remote-tracking branch 'origin/trunk' into xry111/arm64
Diffstat (limited to 'chapter10/grub.xml')
-rw-r--r--chapter10/grub.xml23
1 files changed, 22 insertions, 1 deletions
diff --git a/chapter10/grub.xml b/chapter10/grub.xml
index 07e63c702..48db73bb0 100644
--- a/chapter10/grub.xml
+++ b/chapter10/grub.xml
@@ -23,7 +23,9 @@
</para>
<para>
If you've installed GRUB for UEFI with optional dependencies following
- BLFS, you should skip this page, and configure GRUB with UEFI support
+ BLFS, you should skip the instructions in this page but still learn the
+ syntax of <filename>grub.cfg</filename> and the method to specify
+ a partition in the file from this page, and configure GRUB with UEFI
using the instructions provided in
<ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>,
but replace <parameter>--target=x86_64-efi</parameter> with
@@ -211,6 +213,7 @@ umount /sys/firmware/efi/efivars</userinput></screen>
set default=0
set timeout=5
+insmod part_gpt
insmod ext2
set root=(hd0,2)
@@ -221,6 +224,24 @@ menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" {
}</literal>
EOF</userinput></screen>
+ <para>
+ The <command>insmod</command> commands load the
+ <application>GRUB</application> modules named
+ <filename>part_gpt</filename> and <filename>ext2</filename>.
+ Despite the naming, <filename>ext2</filename> actually supports
+ <systemitem class='filesystem'>ext2</systemitem>,
+ <systemitem class='filesystem'>ext3</systemitem>, and
+ <systemitem class='filesystem'>ext4</systemitem> filesystems.
+ The <command>grub-install</command> command has embedded some modules
+ into the main <application>GRUB</application> image (installed into
+ the MBR or the GRUB BIOS partition) to access the other modules
+ (in <filename class='directory'>/boot/grub/i386-pc</filename>) without
+ a chicken-or-egg issue, so with a typical configuration these two
+ modules are already embedded and those two <command>insmod</command>
+ commands will do nothing. But they do no harm anyway, and they may
+ be needed with some rare configurations.
+ </para>
+
<note><para>From <application>GRUB</application>'s perspective, the
kernel files are relative to the partition used. If you
used a separate /boot partition, remove /boot from the above