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.feeds@gmail.com>2021-04-27 12:37:16 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-04-27 12:37:16 +0200
commitb6cd5835f19e15f41a41ac8172e5dabb3cb7fa39 (patch)
tree480c61bd2d69a1a2f20f14f1dfe1386a5d373567 /examples
parent1230fdfe318ccb8e7c22eeec954969a87efd2b99 (diff)
Reduced complexity in guided for the kernel selection process.
Diffstat (limited to 'examples')
-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: