summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-04-13 22:32:32 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-04-14 22:17:39 +0200
commit8c3bec9a1c13fed19839e8a85a97ddadfaf17315 (patch)
treed2c6d7be41237c31b58efb7aa708f4aa44c87a36 /perl-install/bootloader.pm
parent983b2c9a5e7c198908c22edbc1e69d4dec2419d7 (diff)
downloaddrakx-8c3bec9a1c13fed19839e8a85a97ddadfaf17315.tar
drakx-8c3bec9a1c13fed19839e8a85a97ddadfaf17315.tar.gz
drakx-8c3bec9a1c13fed19839e8a85a97ddadfaf17315.tar.bz2
drakx-8c3bec9a1c13fed19839e8a85a97ddadfaf17315.tar.xz
drakx-8c3bec9a1c13fed19839e8a85a97ddadfaf17315.zip
do not pass useless parameters (mga#15692)
... to grub2 under UEFI
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index ebfc89fb2..ad0b5544c 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1810,11 +1810,10 @@ sub write_grub2_install_sh {
my ($bootloader, $o_backup_extension) = @_;
my $f = "$::prefix/boot/grub2/install.sh";
my $boot = $bootloader->{boot};
- my @options = $boot =~ /\d$/ || is_uefi() ? ('--grub-setup=/bin/true', $boot) : $boot;
+ my @options;
if (is_uefi()) {
- my ($dir) = glob("$::prefix/usr/lib/grub/*-efi");
- $dir =~ s/$::prefix//;
- push @options, '--directory', $dir;
+ } else {
+ @options = $boot =~ /\d$/ ? ('--grub-setup=/bin/true', $boot) : $boot;
}
renamef($f, $f . ($o_backup_extension || '.old'));
output_with_perm($f, 0755, join(' ', 'grub2-install', @options));