From ce4b1fbcff00a3029de06f4b20e60dcaa9e3af93 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 6 Jun 2021 16:19:53 +0200 Subject: Added sorting logic for BlockDevice. Also swapped sys_command() to SysCommand() and refined the logic around those calls. --- examples/guided.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index f48b5d0a..0bcc1fcc 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -75,15 +75,14 @@ def ask_user_questions(): if archinstall.arguments.get('harddrives', None): archinstall.arguments['harddrives'] = [archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.arguments['harddrives']] else: - archinstall.arguments['harddrives'] = [ - archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.generic_multi_select(archinstall.all_disks(), - text="Select one or more harddrives to use and configure (leave blank to skip this step): ", - allow_empty=True) - ] + archinstall.arguments['harddrives'] = archinstall.generic_multi_select(archinstall.all_disks(), + text="Select one or more harddrives to use and configure (leave blank to skip this step): ", + allow_empty=True) if archinstall.arguments.get('harddrives', None): archinstall.storage['disk_layouts'] = archinstall.select_disk_layout(archinstall.arguments['harddrives']) + exit(0) # Get disk encryption password (or skip if blank) if archinstall.arguments['harddrives'] and archinstall.arguments.get('!encryption-password', None) is None: -- cgit v1.2.3-54-g00ecf