summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-01-31 17:34:45 +0000
committerFrancois Pons <fpons@mandriva.com>2001-01-31 17:34:45 +0000
commitd2a5b908522cf50eddc1c4fd46caf9e5c2152958 (patch)
tree4c0c6e12a2d4dee0e9ca81ce38af6868926de45e /perl-install/modules.pm
parent406475c351c647dbf2c06b00c8ba94a78fb3aa0f (diff)
downloaddrakx-backup-do-not-use-d2a5b908522cf50eddc1c4fd46caf9e5c2152958.tar
drakx-backup-do-not-use-d2a5b908522cf50eddc1c4fd46caf9e5c2152958.tar.gz
drakx-backup-do-not-use-d2a5b908522cf50eddc1c4fd46caf9e5c2152958.tar.bz2
drakx-backup-do-not-use-d2a5b908522cf50eddc1c4fd46caf9e5c2152958.tar.xz
drakx-backup-do-not-use-d2a5b908522cf50eddc1c4fd46caf9e5c2152958.zip
added missing die if modprobe failed on live upgrade.
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm4
1 files 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 ]);
}