index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Werner Llácer <wllacer@gmail.com> | 2022-02-03 00:02:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 00:02:30 +0100 |
commit | 3cd7dc24c7ebe8911978380d75fd79e0c581060a (patch) | |
tree | 1aa329b24f0eb41289f3b60d67218604e49b5873 /archinstall/lib/disk | |
parent | 389feef035cfbb1bd2c4f8be070fa085c088f151 (diff) |
-rw-r--r-- | archinstall/lib/disk/helpers.py | 5 |
diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index 26f701d2..b04e2740 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -140,11 +140,12 @@ def split_bind_name(path :Union[pathlib.Path, str]) -> list: def get_mount_info(path :Union[pathlib.Path, str], traverse :bool = False, return_real_path :bool = False) -> Dict[str, Any]: device_path,bind_path = split_bind_name(path) + output = {} + for traversal in list(map(str, [str(device_path)] + list(pathlib.Path(str(device_path)).parents))): try: log(f"Getting mount information for device path {traversal}", level=logging.INFO) - output = SysCommand(f'/usr/bin/findmnt --json {traversal}').decode('UTF-8') - if output: + if (output := SysCommand(f'/usr/bin/findmnt --json {traversal}').decode('UTF-8')): break except SysCallError: pass |