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-03 18:30:53 +0200
commit1bf914e86184b84d02465f8bb04747a7edd1517c (patch)
tree5ea8d905b7597634ca5610334900afb439c3118b /perl-install/bootloader.pm
parentb0039ed72e22303c213539ed68315fd90c3c73f1 (diff)
downloaddrakx-1bf914e86184b84d02465f8bb04747a7edd1517c.tar
drakx-1bf914e86184b84d02465f8bb04747a7edd1517c.tar.gz
drakx-1bf914e86184b84d02465f8bb04747a7edd1517c.tar.bz2
drakx-1bf914e86184b84d02465f8bb04747a7edd1517c.tar.xz
drakx-1bf914e86184b84d02465f8bb04747a7edd1517c.zip
grub2-install output too (mga#15439)
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 d85a02d39..75990bf40 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1974,7 +1974,10 @@ sub install_raw_grub2 {
my $error;
# 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 });
}