Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-09-26 18:57:50 +1000
committerGitHub <noreply@github.com>2023-09-26 10:57:50 +0200
commitbc8d4ea2346b09adc641ae51648ac67df939d27a (patch)
treef09f9d5e19997d60c00dfdfd5210be217d30e0bc /archinstall/lib/disk
parent717a22371fd25aac10d1f435b65842e800fd9d7e (diff)
Fix 2103 (#2114)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/disk')
-rw-r--r--archinstall/lib/disk/device_handler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index 4cb35c03..8af33fde 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -49,12 +49,11 @@ class DeviceHandler(object):
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':