Skip rom devices (#1906)
This commit is contained in:
parent
58bccccd5d
commit
ffb9366280
|
|
@ -45,6 +45,9 @@ class DeviceHandler(object):
|
|||
block_devices = {}
|
||||
|
||||
for device in getAllDevices():
|
||||
if get_lsblk_info(device.path).type == 'rom':
|
||||
continue
|
||||
|
||||
try:
|
||||
disk = Disk(device)
|
||||
except DiskLabelException as err:
|
||||
|
|
|
|||
Loading…
Reference in New Issue