summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-02-27 14:04:48 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-02-27 14:04:48 +0000
commitd2b19538f870ee68f260662c17a709088f538c9e (patch)
tree1a6850d674648b33606a19d540d30399264f1247 /perl-install/standalone
parentc80f2ca57d31f86dcc7a4b451a3c9fd41a79e97f (diff)
downloaddrakx-d2b19538f870ee68f260662c17a709088f538c9e.tar
drakx-d2b19538f870ee68f260662c17a709088f538c9e.tar.gz
drakx-d2b19538f870ee68f260662c17a709088f538c9e.tar.bz2
drakx-d2b19538f870ee68f260662c17a709088f538c9e.tar.xz
drakx-d2b19538f870ee68f260662c17a709088f538c9e.zip
backported from TRUNK for Mandriva One
- fix adding storage controllers: set scsi_hostadapter like DrakX does instead of trying preloading the driver - manage hardware_raid class too
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake12
1 files changed, 11 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 88de1844d..17f46bcb2 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));