summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorArnaud Patard <rtp@mageia.org>2012-12-07 13:58:36 +0000
committerArnaud Patard <rtp@mageia.org>2012-12-07 13:58:36 +0000
commit93cca46c26c2078593f663f894193053cc740d43 (patch)
tree2f7e19f2499f7f1c49bcdfb469a3db6a6b2a6279 /perl-install/modules.pm
parent2b1f165d34612d73d37a1cc21089d4e63f4e5fd0 (diff)
downloaddrakx-93cca46c26c2078593f663f894193053cc740d43.tar
drakx-93cca46c26c2078593f663f894193053cc740d43.tar.gz
drakx-93cca46c26c2078593f663f894193053cc740d43.tar.bz2
drakx-93cca46c26c2078593f663f894193053cc740d43.tar.xz
drakx-93cca46c26c2078593f663f894193053cc740d43.zip
- Add support to detect if we're running in Hyper-V vm and automatically
load storage driver when probing disks in this case.
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 6014c6dc6..ddcfc0268 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -277,8 +277,13 @@ sub when_load_category {
if ($category =~ m,disk/ide,) {
$conf->add_probeall('ide-controller', $name);
eval { load('ide_gd_mod') };
- } elsif ($category =~ m,disk/(scsi|hardware_raid|sata|firewire),) {
+ } elsif ($category =~ m,disk/(scsi|hardware_raid|sata|firewire|virtual),) {
$conf->add_probeall('scsi_hostadapter', $name);
+ if (detect_devices::isHyperv()) {
+ log::l("HyperV detected. Loading storvsc");
+ load('hv_vmbus');
+ load('hv_storvsc');
+ }
eval { load('sd_mod') };
} elsif ($category eq 'bus/usb') {
$conf->add_probeall('usb-interface', $name);