diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-03-17 22:11:23 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-03-17 22:12:31 +0100 |
commit | 1405b78caafa724dfba2d9d56c16088bf7e0fb50 (patch) | |
tree | 6d92ddf5eee5e10dee916327ebb83533d2a73612 /perl-install/bootloader.pm | |
parent | 79ddf1c3b4730b93c664bca3176fbb7f140d3e71 (diff) | |
download | drakx-1405b78caafa724dfba2d9d56c16088bf7e0fb50.tar drakx-1405b78caafa724dfba2d9d56c16088bf7e0fb50.tar.gz drakx-1405b78caafa724dfba2d9d56c16088bf7e0fb50.tar.bz2 drakx-1405b78caafa724dfba2d9d56c16088bf7e0fb50.tar.xz drakx-1405b78caafa724dfba2d9d56c16088bf7e0fb50.zip |
log mkinitrd faillures (mga#9201)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 1c78bd628..0ee49b862 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -155,9 +155,12 @@ sub mkinitrd { if_($::isInstall, "-v"), "-f", $initrd, $kernel_version, if_($entry->{initrd_options}, split(' ', $entry->{initrd_options})), ); - if (!run_program::rooted($::prefix, 'mkinitrd', @options)) { + + my $err; + if (!run_program::rooted($::prefix, 'mkinitrd', '2>', \$err, @options)) { unlink("$::prefix/$initrd"); - die "mkinitrd failed:\n(mkinitrd @options)"; + log::explanations("mkinitrd failed:\n(mkinitrd @options)\nError: <$err>"); + die "mkinitrd failed:\n(mkinitrd @options)\nError: $err"; } add_boot_splash($initrd, $entry->{vga} || $bootloader->{vga}); |