index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <blackrabbit256@gmail.com> | 2022-10-04 01:37:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 16:37:57 +0200 |
commit | 40e4046633d857929b8fd1bfa121b38937add81c (patch) | |
tree | a099f43d011eb84fc5ca38ebc41a8170514f5b37 /archinstall/lib/user_interaction/system_conf.py | |
parent | 5959cde5cb43c166d44af49864ab50d5584ecf45 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction/system_conf.py | 7 |
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 |