From 40e4046633d857929b8fd1bfa121b38937add81c Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Tue, 4 Oct 2022 01:37:57 +1100 Subject: Exclude archiso devices from selectable blockdevices (#1481) * Exclude liveusb from disk selection * Exclude arch iso from being an option * Update * Update * Update * Mypy Co-authored-by: Daniel Girtler --- archinstall/lib/user_interaction/system_conf.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'archinstall/lib/user_interaction/system_conf.py') diff --git a/archinstall/lib/user_interaction/system_conf.py b/archinstall/lib/user_interaction/system_conf.py index 0416e91f..8b574b2c 100644 --- a/archinstall/lib/user_interaction/system_conf.py +++ b/archinstall/lib/user_interaction/system_conf.py @@ -52,11 +52,6 @@ def select_harddrives(preset: List[str] = []) -> List[str]: hard_drives = all_blockdevices(partitions=False).values() options = {f'{option}': option for option in hard_drives} - if preset: - preset_disks = {f'{option}': option for option in preset} - else: - preset_disks = {} - title = str(_('Select one or more hard drives to use and configure\n')) title += str(_('Any modifications to the existing setting will reset the disk layout!')) @@ -65,7 +60,7 @@ def select_harddrives(preset: List[str] = []) -> List[str]: selected_harddrive = Menu( title, list(options.keys()), - preset_values=list(preset_disks.keys()), + preset_values=preset, multi=True, raise_error_on_interrupt=True, raise_error_warning_msg=warning -- cgit v1.2.3-54-g00ecf