Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/guided.py b/examples/guided.py
index f4cf097e..52ee07a6 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -189,16 +189,13 @@ def ask_user_questions():
archinstall.arguments['audio'] = None
# Ask what kernel user wants:
- while True:
- kernel = generic_select(["linux", "linux-lts", "linux-zen", "continue"], "choose a kernel:")
- if (archinstall.arguments.get("kernels", None) == None):
+ if not archinstall.arguments.get("kernels", None):
+ archinstall.log(f"Here you can choose which kernel to use, leave blank for default which is 'linux'.")
+
+ if (kernel := generic_select(["linux", "linux-lts", "linux-zen", "continue"], "choose a kernel:")):
archinstall.arguments['kernels'] = kernel
else:
- if (kernel == "continue"):
- break
- archinstall.arguments['kernels'] += "," + kernel
-
-
+ archinstall.arguments['kernels'] = 'linux'
# Additional packages (with some light weight error handling for invalid package names)
while True: