diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-12-16 22:25:44 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-12-17 18:16:51 +0000 |
commit | 37028493976e0f8b52a0463a348690f4f6d2cdc5 (patch) | |
tree | 51f405c5f9e035d40b8243d19e39aac13b08c2b9 /perl-install | |
parent | 51f5733e7910fdf7c99ef9da67fbb5d0d7ef51c1 (diff) | |
download | drakx-37028493976e0f8b52a0463a348690f4f6d2cdc5.tar drakx-37028493976e0f8b52a0463a348690f4f6d2cdc5.tar.gz drakx-37028493976e0f8b52a0463a348690f4f6d2cdc5.tar.bz2 drakx-37028493976e0f8b52a0463a348690f4f6d2cdc5.tar.xz drakx-37028493976e0f8b52a0463a348690f4f6d2cdc5.zip |
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.
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/bootloader.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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), ( |