Skip to content

Commit

Permalink
Fix 2103 (#2114)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
  • Loading branch information
svartkanin and svartkanin committed Sep 26, 2023
1 parent 717a223 commit bc8d4ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions archinstall/lib/disk/device_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ def load_devices(self):

try:
loop_devices = SysCommand(['losetup', '-a'])
except SysCallError as err:
debug(f'Failed to get loop devices: {err}')
else:
for ld_info in str(loop_devices).splitlines():
loop_device = getDevice(ld_info.split(':', maxsplit=1)[0])
devices.append(loop_device)
except Exception as err:
debug(f'Failed to get loop devices: {err}')

for device in devices:
if get_lsblk_info(device.path).type == 'rom':
Expand Down

0 comments on commit bc8d4ea

Please sign in to comment.