summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2020-12-19 21:05:47 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2020-12-19 21:56:02 +0000
commite4219ae4165122c8fce9380cbf99363454b4586b (patch)
treef57a03e9ad08ec90c1d64072ebdfdd3c8624ca82 /perl-install/bootloader.pm
parent057a1ef4ebdf018d9f260faf34a2f40f7b2227f7 (diff)
downloaddrakx-e4219ae4165122c8fce9380cbf99363454b4586b.tar
drakx-e4219ae4165122c8fce9380cbf99363454b4586b.tar.gz
drakx-e4219ae4165122c8fce9380cbf99363454b4586b.tar.bz2
drakx-e4219ae4165122c8fce9380cbf99363454b4586b.tar.xz
drakx-e4219ae4165122c8fce9380cbf99363454b4586b.zip
Fix false detection of GRUB2 when installed in ESP but not in /boot.
This caused the installer to select non-graphical GRUB2 as the default bootloader method (mga#27816).
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};