Exclude archiso loop device (#2715)
This commit is contained in:
parent
92079b0e8e
commit
661328767c
|
|
@ -52,6 +52,8 @@ class DeviceHandler(object):
|
|||
devices = getAllDevices()
|
||||
devices.extend(self.get_loop_devices())
|
||||
|
||||
archiso_mountpoint = Path('/run/archiso/airootfs')
|
||||
|
||||
for device in devices:
|
||||
dev_lsblk_info = find_lsblk_info(device.path, all_lsblk_info)
|
||||
|
||||
|
|
@ -62,6 +64,10 @@ class DeviceHandler(object):
|
|||
if dev_lsblk_info.type == 'rom':
|
||||
continue
|
||||
|
||||
# exclude archiso loop device
|
||||
if dev_lsblk_info.mountpoint == archiso_mountpoint:
|
||||
continue
|
||||
|
||||
try:
|
||||
if dev_lsblk_info.pttype:
|
||||
disk = newDisk(device)
|
||||
|
|
|
|||
Loading…
Reference in New Issue