Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/device_model.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/disk/device_model.py')
-rw-r--r--archinstall/lib/disk/device_model.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/disk/device_model.py b/archinstall/lib/disk/device_model.py
index ad2628ae..b520ad1b 100644
--- a/archinstall/lib/disk/device_model.py
+++ b/archinstall/lib/disk/device_model.py
@@ -374,7 +374,10 @@ class _DeviceInfo:
@classmethod
def from_disk(cls, disk: Disk) -> _DeviceInfo:
device = disk.device
- device_type = parted.devices[device.type]
+ if device.type == 18:
+ device_type = 'loop'
+ else:
+ device_type = parted.devices[device.type]
sector_size = Size(device.sectorSize, Unit.B)
free_space = [DeviceGeometry(g, sector_size) for g in disk.getFreeSpaceRegions()]