diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-09-17 14:51:24 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-09-17 14:51:24 +0000 |
commit | 988a17892dedfbaa45b0f2a7706facb69154b97c (patch) | |
tree | de2c477ea6c7c4db9ae507216ba11a7ac5de0006 | |
parent | 4cdcc4bcf4ffbca300191150e86b1b50fe3278a7 (diff) | |
download | drakx-988a17892dedfbaa45b0f2a7706facb69154b97c.tar drakx-988a17892dedfbaa45b0f2a7706facb69154b97c.tar.gz drakx-988a17892dedfbaa45b0f2a7706facb69154b97c.tar.bz2 drakx-988a17892dedfbaa45b0f2a7706facb69154b97c.tar.xz drakx-988a17892dedfbaa45b0f2a7706facb69154b97c.zip |
Fix VirtiIO on old kernel
-rw-r--r-- | perl-install/detect_devices.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index a4cc3d05d..9c269750f 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -369,9 +369,11 @@ sub getATARAID() { sub getVirtIO() { -d '/sys/bus/virtio/devices' or return; map { - { device => basename($_), info => "VirtIO block device", media_type => 'hd', bus => 'virtio' } + my $dev = basename($_); + $dev =~ s/block://; + { device => $dev, info => "VirtIO block device", media_type => 'hd', bus => 'virtio' } } - glob("/sys/bus/virtio/devices/*/block/*"); + glob("/sys/bus/virtio/devices/*/block:*"); } # cpu_name : arch() =~ /^alpha/ ? "cpu " : |