diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-12-19 21:05:47 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-12-19 21:56:02 +0000 |
commit | e4219ae4165122c8fce9380cbf99363454b4586b (patch) | |
tree | f57a03e9ad08ec90c1d64072ebdfdd3c8624ca82 /perl-install/bootloader.pm | |
parent | 057a1ef4ebdf018d9f260faf34a2f40f7b2227f7 (diff) | |
download | drakx-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.pm | 2 |
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}; |