Allow for multiple disks to be selected (to span partitions such as boot across multiple block devices)
This commit is contained in:
parent
469ab8d15a
commit
a0947f527a
|
|
@ -36,17 +36,24 @@ def ask_user_questions():
|
||||||
archinstall.arguments['mirror-region'] = archinstall.select_mirror_regions(archinstall.list_mirrors())
|
archinstall.arguments['mirror-region'] = archinstall.select_mirror_regions(archinstall.list_mirrors())
|
||||||
break
|
break
|
||||||
except archinstall.RequirementError as e:
|
except archinstall.RequirementError as e:
|
||||||
archinstall.log(e, fg="red")
|
archinstall.log(e, fg="red")
|
||||||
else:
|
else:
|
||||||
selected_region = archinstall.arguments['mirror-region']
|
selected_region = archinstall.arguments['mirror-region']
|
||||||
archinstall.arguments['mirror-region'] = {selected_region : archinstall.list_mirrors()[selected_region]}
|
archinstall.arguments['mirror-region'] = {selected_region : archinstall.list_mirrors()[selected_region]}
|
||||||
|
|
||||||
|
|
||||||
# Ask which harddrive/block-device we will install to
|
# Ask which harddrives/block-devices we will install to
|
||||||
if archinstall.arguments.get('harddrive', None):
|
# and convert them into archinstall.BlockDevice() objects.
|
||||||
archinstall.arguments['harddrive'] = archinstall.BlockDevice(archinstall.arguments['harddrive'])
|
if archinstall.arguments.get('harddrives', None):
|
||||||
|
archinstall.arguments['harddrives'] = [archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.arguments['harddrives']]
|
||||||
else:
|
else:
|
||||||
archinstall.arguments['harddrive'] = archinstall.select_disk(archinstall.all_disks())
|
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)
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Perform a quick sanity check on the selected harddrive.
|
# Perform a quick sanity check on the selected harddrive.
|
||||||
# 1. Check if it has partitions
|
# 1. Check if it has partitions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue