summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
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()