Fixes #324.
This commit is contained in:
parent
c88034fa8a
commit
81c57560b3
|
|
@ -74,13 +74,14 @@ def ask_user_questions():
|
||||||
|
|
||||||
archinstall.log(f" ** You will now select which partitions to use by selecting mount points (inside the installation). **")
|
archinstall.log(f" ** You will now select which partitions to use by selecting mount points (inside the installation). **")
|
||||||
archinstall.log(f" ** The root would be a simple / and the boot partition /boot (as all paths are relative inside the installation). **")
|
archinstall.log(f" ** The root would be a simple / and the boot partition /boot (as all paths are relative inside the installation). **")
|
||||||
|
mountpoints_set = []
|
||||||
while True:
|
while True:
|
||||||
# Select a partition
|
# Select a partition
|
||||||
# If we provide keys as options, it's better to convert them to list and sort before passing
|
# If we provide keys as options, it's better to convert them to list and sort before passing
|
||||||
mountpoints_list = sorted(list(partition_mountpoints.keys()))
|
mountpoints_list = sorted(list(partition_mountpoints.keys()))
|
||||||
partition = archinstall.generic_select(mountpoints_list,
|
partition = archinstall.generic_select(mountpoints_list,
|
||||||
"Select a partition by number that you want to set a mount-point for (leave blank when done): ")
|
"Select a partition by number that you want to set a mount-point for (leave blank when done): ")
|
||||||
if not partition:
|
if not partition and set(mountpoints_set) & {'/', '/boot'} == {'/', '/boot'}:
|
||||||
break
|
break
|
||||||
|
|
||||||
# Select a mount-point
|
# Select a mount-point
|
||||||
|
|
@ -122,6 +123,7 @@ def ask_user_questions():
|
||||||
# We can safely mark the partition for formatting and where to mount it.
|
# We can safely mark the partition for formatting and where to mount it.
|
||||||
# TODO: allow_formatting might be redundant since target_mountpoint should only be
|
# TODO: allow_formatting might be redundant since target_mountpoint should only be
|
||||||
# set if we actually want to format it anyway.
|
# set if we actually want to format it anyway.
|
||||||
|
mountpoints_set.append(mountpoint)
|
||||||
partition.allow_formatting = True
|
partition.allow_formatting = True
|
||||||
partition.target_mountpoint = mountpoint
|
partition.target_mountpoint = mountpoint
|
||||||
# Only overwrite the filesystem definition if we selected one:
|
# Only overwrite the filesystem definition if we selected one:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue