index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2022-08-09 20:05:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 20:05:05 +0200 |
commit | 437ac124c6f02bc4f1c7e319a8ad407acffe9d8f (patch) | |
tree | 8b4c6613241dc9695462c506f259bda3b74494c1 /archinstall/lib/disk/helpers.py | |
parent | a31bf94fa3727ef2c13e37d33560f6acf1141902 (diff) |
-rw-r--r-- | archinstall/lib/disk/helpers.py | 4 |
diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index c8ac564e..60efe724 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -403,6 +403,10 @@ def get_partitions_in_use(mountpoint :str) -> Dict[str, Any]: log(f'Filtering available mounts {block_devices_mountpoints} to those under {mountpoint}', level=logging.DEBUG) for mountpoint in list(get_all_targets(output['filesystems']).keys()): + # Since all_blockdevices() returns PosixPath objects, we need to convert + # findmnt paths to pathlib.Path() first: + mountpoint = pathlib.Path(mountpoint) + if mountpoint in block_devices_mountpoints: if mountpoint not in mounts: mounts[mountpoint] = block_devices_mountpoints[mountpoint] |