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:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 22:11:13 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 22:11:13 +0000
commitf6460b8634d2ac3bbdec5e7dc542b07ac1badea5 (patch)
treea0fe7d1b10295ef57711b6420293f70d9e69f5bd /examples/guided.py
parent72f9c07e439eb2dac0bfc385db4b465fb9c44b7a (diff)
Fixed a bug where no locale generated a hang because loadkeys needs at least one option in set_keyboard_language()
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 6c8f59c8..8378fc6b 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -82,8 +82,8 @@ archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', suppress_error
will we continue with the actual installation steps.
"""
-keyboard_language = archinstall.select_language(archinstall.list_keyboard_languages())
-archinstall.set_keyboard_language(keyboard_language)
+if len(keyboard_language := archinstall.select_language(archinstall.list_keyboard_languages()).strip()):
+ archinstall.set_keyboard_language(keyboard_language)
# Create a storage structure for all our information.
# We'll print this right before the user gets informed about the formatting timer.