Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-06 16:19:53 +0200
committerAnton Hvornum <anton@hvornum.se>2021-06-06 16:19:53 +0200
commitce4b1fbcff00a3029de06f4b20e60dcaa9e3af93 (patch)
tree681e9345e07607c9609cf9fe1ea88d7bc94f4d10 /examples
parentf9774af2cc4dc113293664d44de1a7598348326e (diff)
Added sorting logic for BlockDevice. Also swapped sys_command() to SysCommand() and refined the logic around those calls.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py9
1 files changed, 4 insertions, 5 deletions
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: