grub/grub-core/osdep/linux
Steve McIntyre c28c107e24 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>
2020-09-21 16:43:55 -04:00
..
blocklist.c linux/blocklist: Fix memory leak. 2015-01-26 09:50:58 +01:00
emunet.c Split emunet into platform-dependent and GRUB-binding parts. Keep 2013-10-15 11:55:20 +02:00
getroot.c osdep/linux: handle autofs entries in /proc/self/mountinfo 2017-01-24 20:05:19 +03:00
hostdisk.c osdep/linux: Convert partition start to disk sector length 2020-09-21 13:29:05 -04:00
ofpath.c sparc64: Limit nvme of_path_of_nvme to just SPARC 2020-09-21 12:16:25 -04:00
platform.c grub-install: Check for arm-efi as a default target 2020-09-21 16:43:55 -04:00