summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 99cfcec3a..08872ec90 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -295,6 +295,7 @@ sub read_grub2() {
if (is_empty_hash_ref(\%bootloader)) {
%bootloader = read_grub2_install_sh();
}
+ return if is_empty_hash_ref(\%bootloader) & !-s "$::prefix/boot/grub2/grub.cfg";
my %h = getVarsFromSh("$::prefix/etc/default/grub");
$bootloader{timeout} = $h{GRUB_TIMEOUT};
$bootloader{entries} = [];