From 37028493976e0f8b52a0463a348690f4f6d2cdc5 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 16 Dec 2018 22:25:44 +0000 Subject: Only enable rEFInd bootloader if kernel type matches BIOS type. Although we could install a working rEFInd boot manager, it uses the kernel EFI stub loader to boot the O/S, and that won't work if the EFI types don't match. --- perl-install/bootloader.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/bootloader.pm') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 9b8372522..0bc156b67 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1469,7 +1469,7 @@ sub method_choices_raw { arch() =~ /arm/ ? 'uboot' : if_(!$b_prefix_mounted || whereis_binary('grub2-reboot', $::prefix), 'grub2-graphic', 'grub2'), - if_(is_uefi() && (!$b_prefix_mounted || whereis_binary('refind-install', $::prefix)), 'refind'), + if_(uefi_type() eq kernel_uefi_type() && (!$b_prefix_mounted || whereis_binary('refind-install', $::prefix)), 'refind'), # only grub2 & rEFInd work on UEFI: # lilo & grub-legacy do not suppport new ext4/xfs format and are unmainted so only allow them on upgrade: if_(!is_uefi() && !($::isInstall && !$::o->{isUpgrade} || $::isLiveInstall), ( -- cgit v1.2.1