From 7daf9b32d0c32d9fa1ba5aa9750376ad47c6d7e6 Mon Sep 17 00:00:00 2001 From: demostanis <40673815+demostanis@users.noreply.github.com> Date: Sun, 29 May 2022 07:34:32 +0000 Subject: Fix "Unknown device" error when using erofs (#1232) (#1275) --- archinstall/lib/disk/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall/lib') diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index 47cc81c4..85c0390f 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -244,7 +244,7 @@ def all_blockdevices(mappers=False, partitions=False, error=False) -> Dict[str, instances[path] = Partition(path, block_device=BlockDevice(get_parent_of_partition(pathlib.Path(path)))) elif path_info.get('PTTYPE', False) is not False or path_info.get('TYPE') == 'loop': instances[path] = BlockDevice(path, path_info) - elif path_info.get('TYPE') == 'squashfs': + elif path_info.get('TYPE') in ('squashfs', 'erofs'): # We can ignore squashfs devices (usually /dev/loop0 on Arch ISO) continue else: -- cgit v1.2.3-54-g00ecf