arm64: grub: Update references to BLFS

Now BLFS documents how to install only the GRUB components missing in
LFS, take the advantage.

Also if efibootmgr is available, it's easier to just run grub-install
w/o the --removable option instead of manually input some nasty
efibootmgr commands.
This commit is contained in:
Xi Ruoyao 2024-05-14 00:19:48 +08:00
parent 161a2670b4
commit c6e4dbaee6
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 17 additions and 36 deletions

View File

@ -43,23 +43,23 @@
<note>
<para>
On ARM64 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
<ulink url="&blfs-book;general/freetype.html">FreeType</ulink>
and then install the GRUB compoents not installed from LFS following
<ulink url="&blfs-book;postlfs/grub-efi.html">the BLFS
instruction</ulink>, but remove the <option>--target=x86_64</option>
option and skip the command to install the
<filename class='directory'>/usr/lib/grub/x86_64-efi</filename>
directory.
</para>
<para>
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.
</para>
<para>
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
<ulink url="&blfs-book;postlfs/grub-efi.html">the BLFS page</ulink>.
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).
</para>
</note>
<warning>

View File

@ -19,19 +19,7 @@
<note>
<para>
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.
</para>
<para>
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 <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
<parameter>--target=arm64-efi</parameter> for the ARM64 system.
</para>
<para>
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.
@ -176,17 +164,10 @@ mount /boot/efi</userinput></screen>
recorded in an EFI variable. Then you need to create an EFI
variable for the newly installed boot loader. Install
<ulink url="&blfs-book;postlfs/efibootmgr.html">efibootmgr</ulink>,
then run the following commands:
<screen role="nodump"><userinput>mount -v -t efivarfs efivarfs /sys/firmware/efi/efivars
efibootmgr -B -L LFS || true
efibootmgr -c -L LFS -l '\EFI\BOOT\BOOTAA64.EFI' -d /dev/sda
umount /sys/firmware/efi/efivars</userinput></screen>
Replace <filename>/dev/sda</filename> with the device node of the
hard drive where you are installing GRUB into. For some UEFI
firmwares, <option>-e 3</option> option may be needed for the
<command>efibootmgr -c</command> command.
and follow
<ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS
instruction</ulink> to run the <command>grub-install</command>
command without the <parameter>--removable</parameter> option then.
</para>
</note>