From 4ee38561c97468ef5c99ed329d70a7331332059f Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 8 Dec 2018 18:37:24 +0000 Subject: bootloader: only prefer rEFInd if it installed in the root fs (mga#23944) --- 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 71d50eaa6..9b8372522 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 || -e "$::prefix/boot/EFI/EFI/refind"), 'refind'), + if_(is_uefi() && (!$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