From 7189033dc6e885f0aa29a4befadc824b3e82e8b4 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 7 Apr 2015 04:58:21 -0400 Subject: fix installing grub2 on MBR (mga#15640) regression introduced in: commit b0039ed72e22303c213539ed68315fd90c3c73f1 --- perl-install/bootloader.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index d26120729..f162b0d6d 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -2023,7 +2023,7 @@ sub install_grub2 { my $boot = $bootloader->{boot}; # if (member($boot, map { "/dev/$_->{device}" } @{$all_hds->{hds}}) { my @options = $boot =~ /\d$/ ? ('--grub-setup=/bin/true', $boot) : $boot; - if (!run_program::rooted($::prefix, 'grub2-install', '2>', \$error, '--grub-setup=/bin/true', @options)) { + if (!run_program::rooted($::prefix, 'grub2-install', '2>', \$error, @options)) { log::explanations("grub2-install failed:\n(grub2-install @options)\nError: <$error>"); die "grub2-install failed: $error"; } -- cgit v1.2.1