|
|
@ -387,7 +387,7 @@ class LinuxHardware(Hardware):
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
for block in block_devs:
|
|
|
|
for block in block_devs:
|
|
|
|
virtual = 0
|
|
|
|
virtual = 1
|
|
|
|
sysfs_no_links = 0
|
|
|
|
sysfs_no_links = 0
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
path = os.readlink(os.path.join("/sys/block/", block))
|
|
|
|
path = os.readlink(os.path.join("/sys/block/", block))
|
|
|
@ -403,7 +403,7 @@ class LinuxHardware(Hardware):
|
|
|
|
if sysfs_no_links == 1:
|
|
|
|
if sysfs_no_links == 1:
|
|
|
|
for folder in os.listdir(sysdir):
|
|
|
|
for folder in os.listdir(sysdir):
|
|
|
|
if re.search("device", folder):
|
|
|
|
if re.search("device", folder):
|
|
|
|
virtual = 1
|
|
|
|
virtual = 0
|
|
|
|
break
|
|
|
|
break
|
|
|
|
if virtual:
|
|
|
|
if virtual:
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|