Anton Hvornum 2021-06-13 10:37:30 +02:00
parent 8cc51cbcdc
commit 9b6d7021a8
2 changed files with 5 additions and 5 deletions

View File

@ -125,10 +125,11 @@ class Installer:
return True
def mount_ordered_layout(self, layout :dict):
def mount_ordered_layout(self, layouts :dict):
mountpoints = {}
for partition in layout['partitions']:
mountpoints[partition['mountpoint']] = partition['device_instance']
for blockdevice in layouts:
for partition in layouts[blockdevice]['partitions']:
mountpoints[partition['mountpoint']] = partition['device_instance']
for mountpoint in sorted(mountpoints.keys()):
mountpoints[mountpoint].mount(f"{self.target}{mountpoint}")

View File

@ -236,8 +236,7 @@ def perform_installation(mountpoint):
with archinstall.Installer(mountpoint, kernels=archinstall.arguments.get('kernels', 'linux')) as installation:
# Mount all the drives to the desired mountpoint
# This *can* be done outside of the installation, but the installer can deal with it.
for drive in archinstall.arguments['harddrives']:
installation.mount_ordered_layout(archinstall.storage['disk_layouts'][drive])
installation.mount_ordered_layout(archinstall.storage['disk_layouts'])
# if len(mirrors):
# Certain services might be running that affects the system during installation.