Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index f87f83be..f0260488 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -963,7 +963,12 @@ def select_harddrives(preset : List[str] = []) -> List[str]:
"""
hard_drives = all_blockdevices(partitions=False).values()
options = {f'{option}': option for option in hard_drives}
- preset_disks = {f'{option}':option for option in preset}
+
+ if preset:
+ preset_disks = {f'{option}':option for option in preset}
+ else:
+ preset_disks = {}
+
selected_harddrive = Menu(
_('Select one or more hard drives to use and configure'),
list(options.keys()),