summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ]);
}