index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2022-05-27 12:24:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 12:24:01 +0200 |
commit | 9b3db344aba22644ccf1fd09ad163395fd5e40be (patch) | |
tree | 829328acf970b56d1680006d21d9ba694d32bc67 /archinstall/lib/installer.py | |
parent | 870da403e79ab50350803b45f200e0b272334989 (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 6 |
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 903d33af..3b53ec50 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -314,9 +314,11 @@ class Installer: if partition.get('filesystem',{}).get('mount_options',[]): mount_options = ','.join(partition['filesystem']['mount_options']) - mount_queue[mountpoint] = lambda target=f"{self.target}{mountpoint}", options=mount_options: partition['device_instance'].mount(target, options) + mount_queue[mountpoint] = lambda instance=partition['device_instance'], target=f"{self.target}{mountpoint}", options=mount_options: instance.mount(target, options) else: - mount_queue[mountpoint] = lambda target=f"{self.target}{mountpoint}": partition['device_instance'].mount(target) + mount_queue[mountpoint] = lambda instance=partition['device_instance'], target=f"{self.target}{mountpoint}": instance.mount(target) + + log(f"Using mount order: {list(sorted(mount_queue.items(), key=lambda item: item[0]))}", level=logging.INFO, fg="white") # We mount everything by sorting on the mountpoint itself. for mountpoint, frozen_func in sorted(mount_queue.items(), key=lambda item: item[0]): |