[RFC][PATCH 0/2] grub-install: Use arm-efi target EFI-mode QEMU virt machines

2018-08-28 Thread dann frazier
Now that Leif has fixed up the arm-uefi target, I'm looking at adding that support into Debian/Ubuntu for virtual machines. One issue is that 'grub-install' errors out by default when only the arm-efi flavor is installed: $ sudo grub-install grub-install: error: /usr/lib/grub/arm-uboot/modinfo.sh

[RFC][PATCH 2/2] arm: grub-install: Default to arm-efi target in EFI-based QEMU virt models

2018-08-28 Thread dann frazier
From: dann frazier We currently default to the arm-uboot target in grub-install, but arm-efi should be used for some systems with UEFI firmware, such as Tianocore/EDK2-based QEMU models. We could change the default to arm-efi anytime we successfully probe for an EFI runtime. However, that would a

[RFC][PATCH 1/2] Factor out EFI detection into its own function

2018-08-28 Thread dann frazier
From: dann frazier No functional change. This will let us re-use the code for ARM. Signed-off-by: dann frazier --- grub-core/osdep/linux/platform.c | 20 grub-core/osdep/windows/platform.c | 10 -- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/g