When booting the arm64-efi target, GRUB prints the error message that may disrupt the boot process:
error: ../../grub-core/fs/btrfs.c:find_path:2163:file `/boot/grub2/arm64-efi/efi_uga.mod' not found. This is introduced by the commit: ea0b76dc4 util/grub.d/00_header.in: Disable loading all_video for EFI However the efi_uga module is only enabled for x86_64-efi and i386-efi. The script should therefore check the CPU target before attempting to load it. Signed-off-by: Michael Chang <[email protected]> --- util/grub.d/00_header.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in index 77834cfaf..737132e90 100644 --- a/util/grub.d/00_header.in +++ b/util/grub.d/00_header.in @@ -135,7 +135,9 @@ else # GRUB_FORCE_EFI_ALL_VIDEO is not set true cat <<EOF if [ x\$grub_platform = xefi ]; then insmod efi_gop - insmod efi_uga + if [ x\$grub_cpu = xx86_64 -o x\$grub_cpu = xi386 ]; then + insmod efi_uga + fi elif [ x\$feature_all_video_module = xy ]; then EOF fi # end GRUB_FORCE_EFI_ALL_VIDEO -- 2.52.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
