index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2022-02-28 17:10:28 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2022-02-28 17:10:28 +0100 |
commit | 5cf3fbfb41f27277877e9cbec3271b79630073fa (patch) | |
tree | f9071d38ed324865495c79283c80ef7691a9df24 /archinstall | |
parent | 35a19a616aee602a849097411cc0254a27c3f9b7 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 7 |
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()), |