From 93ec8b32bf6486d3fdb47bb11c5b91120d442647 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 14 Aug 2023 09:15:54 +0800 Subject: grub cfg: Add an explanation for the insmod commands --- chapter10/grub.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'chapter10/grub.xml') diff --git a/chapter10/grub.xml b/chapter10/grub.xml index 965fa56c3..f232a1675 100644 --- a/chapter10/grub.xml +++ b/chapter10/grub.xml @@ -150,6 +150,24 @@ menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" { } EOF + + The insmod commands load the + GRUB modules named + part_gpt and ext2. + Despite the naming, ext2 actually supports + ext2, + ext3, and + ext4 filesystems. + The grub-install command has embedded some modules + into the main GRUB image (installed into + the MBR or the GRUB BIOS partition) to access the other modules + (in /boot/grub/i386-pc) without + a chicken-or-egg issue, so with a typical configuration these two + modules are already embedded and those two insmod + commands will do nothing. But they do no harm anyway, and they may + be needed with some rare configurations. + + From GRUB's perspective, the kernel files are relative to the partition used. If you used a separate /boot partition, remove /boot from the above -- cgit v1.2.3-54-g00ecf