Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-09 14:01:34 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 14:01:34 +0200
commit5e0a192a9ab59199b805e9d37f51eb10f89691f4 (patch)
tree2721d9268422fe8d2f1051ad22bb78e8fbb5fa84 /archinstall
parentda12f3630575976d43a6c717235bc273c63da7bd (diff)
parent4664bcf29d31b7caaef2786a3af420a2397f04dd (diff)
Bringing in changes from master
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/luks.py2
-rw-r--r--archinstall/lib/user_interaction.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py
index b076ac9b..561d4d6e 100644
--- a/archinstall/lib/luks.py
+++ b/archinstall/lib/luks.py
@@ -127,7 +127,7 @@ class luks2():
os.path.basename(mountpoint) # TODO: Raise exception instead?
wait_timer = time.time()
- while pathlib.Paht(partition.path).exists() is False and time.time() - wait_timer < 10:
+ while pathlib.Path(partition.path).exists() is False and time.time() - wait_timer < 10:
time.sleep(0.025)
sys_command(f'/usr/bin/cryptsetup open {partition.path} {mountpoint} --key-file {os.path.abspath(key_file)} --type luks2')
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 33abbefb..1f5924e4 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -220,7 +220,7 @@ def generic_select(options, input_text="Select one of the above by index or abso
return None
elif selected_option.isdigit():
selected_option = int(selected_option)
- if selected_option >= len(options):
+ if selected_option > len(options):
raise RequirementError(f'Selected option "{selected_option}" is out of range')
selected_option = options[selected_option]
elif selected_option in options: