mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
Move mounting of special partitions from grub to mount
This commit is contained in:
parent
8867f6bc67
commit
0946789f9e
4 changed files with 15 additions and 52 deletions
|
@ -54,11 +54,13 @@ def mount_partitions(root_mount_point, partitions):
|
|||
def run():
|
||||
root_mount_point = tempfile.mkdtemp(prefix="calamares-root-")
|
||||
partitions = libcalamares.globalstorage.value("partitions")
|
||||
extra_mounts = libcalamares.job.configuration["extraMounts"]
|
||||
|
||||
# Sort by mount points to ensure / is mounted before the rest
|
||||
partitions.sort(key=lambda x: x["mountPoint"])
|
||||
mount_partitions(
|
||||
root_mount_point, libcalamares.globalstorage.value("partitions"))
|
||||
mount_partitions(root_mount_point, partitions)
|
||||
|
||||
mount_partitions(root_mount_point, extra_mounts)
|
||||
|
||||
libcalamares.globalstorage.insert("rootMountPoint", root_mount_point)
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue