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