From 090f4f7cc9f47b30df5c004f6d3b142ebcf5d92b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 11 Aug 2002 18:19:20 +0000 Subject: (load): when isStandalone, ignore errors when loading unavailable modules (ie have the same behaviour as during install) --- perl-install/modules.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 8024d1c3d..5ca25a855 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -50,6 +50,7 @@ sub load { log::l("i would load module $_ (@{$options{$_}})") foreach @l; } elsif ($::isStandalone || $::live) { run_program::run('/sbin/modprobe', $_, @{$options{$_}}) + or !run_program::run('/sbin/modprobe', '-n', $_) #- ignore missing modules or die "insmod'ing module $_ failed" foreach @l; } else { load_raw(map { [ $_ => $options{$_} ] } @l); -- cgit v1.2.1