Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-22 21:58:47 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-22 21:58:47 +0200
commit3cf8ec7ad6eccd2899ded1f80ae31c2f835c4d8f (patch)
treeb497d2362978b3626ff8173688ab3bbdb4d8048b /examples
parent81c57560b3f2f0cd10dd8d6b360266f9f4622a41 (diff)
Added a continuation if partitions are not set yet.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 09638f0e..2bf911fc 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -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(' ')