summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-04-03 18:29:19 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-04-27 17:56:11 +0200
commite62c6c118959f8e43f0d9568c84c99416d33255d (patch)
tree23d94450d0ab0d524b07ade95e92cc172b664704 /perl-install/bootloader.pm
parent707e5451506b24fcef93c4c5ca6f3e53691733ab (diff)
downloaddrakx-e62c6c118959f8e43f0d9568c84c99416d33255d.tar
drakx-e62c6c118959f8e43f0d9568c84c99416d33255d.tar.gz
drakx-e62c6c118959f8e43f0d9568c84c99416d33255d.tar.bz2
drakx-e62c6c118959f8e43f0d9568c84c99416d33255d.tar.xz
drakx-e62c6c118959f8e43f0d9568c84c99416d33255d.zip
grub2-install output too (mga#15439)
It would help mga#15751 too
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 6f1644bed..d26120729 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -2023,7 +2023,10 @@ 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;
- run_program::rooted($::prefix, 'grub2-install', '2>', \$error, '--grub-setup=/bin/true', @options) or die "grub2-install failed: $error";
+ if (!run_program::rooted($::prefix, 'grub2-install', '2>', \$error, '--grub-setup=/bin/true', @options)) {
+ log::explanations("grub2-install failed:\n(grub2-install @options)\nError: <$error>");
+ die "grub2-install failed: $error";
+ }
setVarsInSh("$::prefix/boot/grub2/drakboot.conf", { boot => $boot });
}