summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 4e8fba097..227c5604b 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -301,7 +301,8 @@ sub read {
if (is_uefi()) {
if (-e "$::prefix/boot/refind_linux.conf") {
'refind';
- } elsif (-f "$::prefix/boot/EFI/EFI/mageia/grub" . uefi_type() . ".efi") {
+ } elsif (-f "$::prefix/boot/EFI/EFI/mageia/grub" . uefi_type() . ".efi" ||
+ $main_method eq 'grub2' && $bootloader->{removable} && -f "$::prefix/boot/EFI/EFI/BOOT/BOOT" . uc(uefi_type()) . ".EFI") {
'grub2';
} else {
()