From 5cf3fbfb41f27277877e9cbec3271b79630073fa Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 28 Feb 2022 17:10:28 +0100 Subject: 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. --- archinstall/lib/user_interaction.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'archinstall/lib') 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()), -- cgit v1.2.3-70-g09d2