From 36d67c3db4662570eae249f991de6e137fd3014b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 16 Feb 2006 13:57:19 +0000 Subject: - fix adding storage controllers: set scsi_hostadapter like DrakX does instead of trying preloading the driver - manage hardware_raid class too --- perl-install/standalone/service_harddrake | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index ea3ef77ea..bc0462823 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -139,7 +139,17 @@ foreach my $hw_class (@harddrake::data::tree) { network::ethernet::configure_eth_aliases($modules_conf); $modules_conf->write; next; - } elsif (member($Ident, qw(AGP ATA_STORAGE DVB SATA_STORAGE SCSI_CONTROLLER TV))) { + } elsif (member($Ident, qw(ATA_STORAGE RAID_STORAGE SATA_STORAGE SCSI_CONTROLLER))) { + # set scsi_hostadapterr in modprobe.conf: + modules::load_category($modules_conf, 'disk/' . { + ATA_STORAGE => 'ide', + SATA_STORAGE => 'sata', + SCSI_CONTROLLER => 'scsi', + RAID_STORAGE => 'hardware_raid', + }->{$Ident}); + $modules_conf->write; + next; + } elsif (member($Ident, qw(AGP DVB TV))) { my @old_drivers = uniq(map { $_->{driver} } values %$oldconfig); my @new_drivers = uniq(map { $_->{driver} } values %ID); $modules_conf->remove_module(difference2(\@old_drivers, \@new_drivers)); -- cgit v1.2.1