]> git.ipfire.org Git - thirdparty/grub.git/commit
grub-install: Check for arm-efi as a default target
authorSteve McIntyre <93sam@debian.org>
Thu, 21 Feb 2019 14:46:11 +0000 (14:46 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 26 Feb 2019 14:25:13 +0000 (15:25 +0100)
commit686db9664654fd54da0e5ba136322dd9a9423930
tree9e7081df53c15bc8082e89fb743990b31be47593
parent718b3fb1dc59d94619ca828d1a58cb6f8303d3ef
grub-install: Check for arm-efi as a default target

Much like on x86, we can work out if the system is running on top of EFI
firmware. If so, return "arm-efi". If not, fall back to "arm-uboot" as
previously.

Split out the code to (maybe) load the efivar module and check for
/sys/firmware/efi into a common helper routine is_efi_system().

Signed-off-by: Steve McIntyre <93sam@debian.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/osdep/basic/platform.c
grub-core/osdep/linux/platform.c
include/grub/util/install.h
util/grub-install.c