summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2016-03-29 23:06:38 +0300
committerThomas Backlund <tmb@mageia.org>2016-03-29 23:06:38 +0300
commit3da2f2c8125861ca76436049b4706f9fcd17b446 (patch)
treeb8f71fb3db94ce9010994f469803360877fb3c65 /perl-install/detect_devices.pm
parent1dd61099cf8a0e5e8cb7a671b3ac4853860a47b1 (diff)
downloaddrakx-3da2f2c8125861ca76436049b4706f9fcd17b446.tar
drakx-3da2f2c8125861ca76436049b4706f9fcd17b446.tar.gz
drakx-3da2f2c8125861ca76436049b4706f9fcd17b446.tar.bz2
drakx-3da2f2c8125861ca76436049b4706f9fcd17b446.tar.xz
drakx-3da2f2c8125861ca76436049b4706f9fcd17b446.zip
fix detecting nvme devices as block devices
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 09911714e..e38a1b969 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -474,11 +474,11 @@ sub getMmcBlk() {
}
sub getNVMe() {
- -d '/sys/bus/pci_express/devices' or return;
+ -d '/sys/class/nvme' or return;
map {
{ device => basename($_), info => "NVMe block device", media_type => 'hd', bus => 'pci_express' };
}
- glob("/sys/bus/pci_express/devices/*/block/*");
+ glob("/sys/block/nvme*");
}
=item getCPUs()