From d2a5b908522cf50eddc1c4fd46caf9e5c2152958 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 31 Jan 2001 17:34:45 +0000 Subject: added missing die if modprobe failed on live upgrade. --- perl-install/modules.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 3953ea29d..04a5ddf16 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -431,10 +431,10 @@ sub load { if ($::testing) { log::l("i try to install $name module (@options)"); } elsif ($::isStandalone || $::live) { - run_program::run("modprobe", $name, @options); + run_program::run("modprobe", $name, @options) or die "insmod'ing module $name failed"; } else { $conf{$name}{loaded} and return; - + eval { load($_, 'prereq') } foreach @{$deps{$name}}; load_raw([ $name, @options ]); } -- cgit v1.2.1