Added a continuation if partitions are not set yet.

This commit is contained in:
Anton Hvornum 2021-04-22 21:58:47 +02:00
parent 81c57560b3
commit 3cf8ec7ad6
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 5 additions and 2 deletions

View File

@ -81,8 +81,11 @@ def ask_user_questions():
mountpoints_list = sorted(list(partition_mountpoints.keys()))
partition = archinstall.generic_select(mountpoints_list,
"Select a partition by number that you want to set a mount-point for (leave blank when done): ")
if not partition and set(mountpoints_set) & {'/', '/boot'} == {'/', '/boot'}:
break
if not partition:
if set(mountpoints_set) & {'/', '/boot'} == {'/', '/boot'}:
break
continue
# Select a mount-point
mountpoint = input(f"Enter a mount-point for {partition}: ").strip(' ')