From 245525de2ed3ea330af6182580d981ad9519d79e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 21 Apr 2009 13:47:02 +0000 Subject: do not crash if loading new drivers fails (happened with amd64_agp wrongly listed in pcitable, #43870) --- perl-install/standalone/service_harddrake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index deaea0b8d..c2705d042 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -186,7 +186,10 @@ foreach my $hw_class (@harddrake::data::tree) { $modules_conf->remove_module(difference2(\@old_drivers, \@new_drivers)); # add agpgart and the like modules to modprobe.preload if needed: $modules_conf->write; - modules::load(difference2(\@new_drivers, \@old_drivers)); + foreach (difference2(\@new_drivers, \@old_drivers)) { + eval { modules::load($_) }; + warn "warning: $@" if $@; + } next; } elsif ($Ident eq "BLUETOOTH") { harddrake::autoconf::bluetooth(scalar keys %ID); -- cgit v1.2.1