From 6a38c077285c88dcf4d042ec43b6803ba5c56cb1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 8 Apr 2015 05:53:19 -0400 Subject: fix detecting grub2 on ESP We only support detecting grub2 on ESP for now. This might help mga#13901 fix: $ detectloader Cannot find a boot loader installed --- perl-install/bootloader.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'perl-install/bootloader.pm') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index d7bddcff2..fd59addb2 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -261,6 +261,13 @@ sub read { return $bootloader if read_($bootloader); } } + # still no boot loader found? let's check for ESP if using UEFI: + if (is_uefi()) { + if (-f "/boot/EFI/EFI/mageia/grubx64.efi") { + my $bootloader = bootloader::read_grub2(); + return $bootloader if read_($bootloader); + } + } } sub read_ { -- cgit v1.2.1