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.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index c09b12330..d4533da39 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -360,7 +360,7 @@ Read back GRUB2 config
=cut
sub read_grub2() {
- my %bootloader = read_grub2_install_sh();
+ my %bootloader = read_grub2_install_sh() if -e get_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};