%general-entities; ]> $LastChangedBy: bdubbs $ $Date: 2021-02-21 03:35:58 +0800 (日, 2021-02-21) $ GRUB-&grub-version; for EFI grub-efi Introduction to GRUB The GRUB package provides GRand Unified Bootloader. In this page it will be built with UEFI support, which is not enabled for GRUB built in LFS. &lfs101_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &grub-efi-md5sum; Download size: &grub-efi-size; Estimated disk space required: &grub-efi-buildsize; Estimated build time: &grub-efi-time; Additional Downloads Unicode font data used to display GRUB menu Download (HTTP): Download MD5 sum: &unifont-md5sum; Download size: &unifont-size; GRUB Dependencies Required (runtime) Recommended Optional User Notes: Installation of GRUB At first, install font data as the root user: mkdir -pv /usr/share/fonts/unifont && gunzip -c unifont-&unifont-version;.pcf.gz > /usr/share/fonts/unifont/unifont.pcf Unset any environment variables which may affect the build: unset {C,CPP,CXX,LD}FLAGS Don't try tuning this package with custom compilation flags: this package is a bootloader, with low-level operations in the source code which is likely to be broken by some aggressive optimizations. Build GRUB with the following commands: ./configure --prefix=/usr \ --sbindir=/sbin \ --sysconfdir=/etc \ --disable-efiemu \ --enable-grub-mkfont \ --with-platform=efi \ --disable-werror && make This package does not have a test suite providing meaningful result. Now, as the root user: make install && mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions Command Explanations --enable-grub-mkfont: Built the tool named grub-mkfont to generate font file for the boot loader, from the font data we've installed. If the recommended dependency is not installed, it's possible to omit this option and build GRUB. However, if grub-mkfont is not built, or the unicode font data is not avaliable at the time GRUB is built, GRUB won't install any font for the boot loader. The GRUB boot menu will be displayed in an ugly way, and the early stage of kernel initialization will be in blind mode - you can't see any kernel message before the graphics card driver is initialized. It will be very difficult to diagnostic some boot issue (especially, if the graphics driver is built as module). --with-platform=efi: Ensures to build GRUB with for EFI. Configuring GRUB Using GRUB to make the LFS system bootable on UEFI platform will be discussed in . Contents See the page for GRUB in LFS book.