Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2022-02-28 17:10:28 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2022-02-28 17:10:28 +0100
commit5cf3fbfb41f27277877e9cbec3271b79630073fa (patch)
treef9071d38ed324865495c79283c80ef7691a9df24 /archinstall/lib
parent35a19a616aee602a849097411cc0254a27c3f9b7 (diff)
Only set presets if presets are given. We should probably fix tghis in selection_menu.py line 636. But this solves an issue with broken harddrive selection for now.
Diffstat (limited to 'archinstall/lib')
-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()),