diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 902b2ebbd..13c39b699 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -43,23 +43,23 @@ On LoongArch systems, the following instruction builds GRUB for UEFI. - But the built GRUB lacks some features because a few optional - dependencies of GRUB for UEFI is beyond the scope of LFS and not - installed yet. + But because LFS lacks the FreeType package and the Unifont data + file, GRUB won't install any font for the boot loader and + the GRUB boot menu will be displayed using a coarse font or in a + smaller region on the screen. + If wanted, after the LFS system is finished, install + FreeType + and then install the GRUB compoents not installed from LFS following + the BLFS + instruction, but remove the + option and skip the command to install the + /usr/lib/grub/x86_64-efi + directory. If your system firmware does not support UEFI, you need to skip the content of this page and try to figure out how to boot your system. - - If your system has UEFI support and you wish to boot LFS with UEFI, - you need to install GRUB with UEFI support (and its dependencies) by - following the instructions on - the BLFS page. - You may skip this package, or install this package and the BLFS - GRUB for UEFI package without conflict (the BLFS page provides - instructions for both cases). - diff --git a/chapter10/grub.xml b/chapter10/grub.xml index 5082aeeb4..8a2007221 100644 --- a/chapter10/grub.xml +++ b/chapter10/grub.xml @@ -19,20 +19,7 @@ This section assume your system has UEFI support and you wish to boot - LFS with UEFI and GRUB built following the instructions in Chapter 8. - - - If you've installed GRUB for UEFI with optional dependencies following - BLFS, you should skip the instructions in this page but still learn the - syntax of grub.cfg and the method to specify - a partition in the file from this page, and configure GRUB with UEFI - using the instructions provided in - the BLFS page, - but replace --target=x86_64-efi with - --target=loongarch64-efi for the 64-bit - LoongArch system. - - + LFS with UEFI. If your system does not support UEFI or you don't want to use it, you'll need to figure out how to configure the booting process of the system on your own. @@ -177,15 +164,10 @@ mount /boot/efi recorded in an EFI variable. Then you need to create an EFI variable for the newly installed boot loader. Install efibootmgr, - then run the following commands: - -mount -v -t efivarfs efivarfs /sys/firmware/efi/efivars -efibootmgr -B -L LFS || true -efibootmgr -c -L LFS -l '\EFI\BOOT\BOOTLOONGARCH64.EFI' -d /dev/sda -umount /sys/firmware/efi/efivars - - Replace /dev/sda with the device node of the - hard drive where you are installing GRUB into. + and follow + the BLFS + instruction to run the grub-install + command without the --removable option then.