index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-06-10 21:00:33 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-06-10 21:00:33 +0200 |
commit | 0a8c061ab405e244a187b4615654ecca2e538156 (patch) | |
tree | 5f4da9a061c840f5a95a469074bcaf16a8afee61 /archinstall/lib/installer.py | |
parent | adae29c205140da16132d318876ccb278a166e37 (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 8 |
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index da6f6a9b..b62b9595 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -122,6 +122,14 @@ class Installer: return True + def mount_ordered_layout(self, layout :dict): + mountpoints = {} + for partition in layout['partitions']: + mountpoints[partition['mountpoint']] = partition['device_instance'] + + for mountpoint in sorted(mountpoints.keys()): + mountpoints[mountpoint].mount(f"{self.target}{mountpoint}") + def mount(self, partition, mountpoint, create_mountpoint=True): if create_mountpoint and not os.path.isdir(f'{self.target}{mountpoint}'): os.makedirs(f'{self.target}{mountpoint}') |