Tweaked the logic for parsing the --harddrives parameter.
This commit is contained in:
parent
e6549c1edb
commit
70af00f33d
|
|
@ -113,8 +113,7 @@ def ask_user_questions():
|
|||
# and convert them into archinstall.BlockDevice() objects.
|
||||
if archinstall.arguments.get('harddrives', None):
|
||||
if type(archinstall.arguments['harddrives']) is str:
|
||||
archinstall.arguments['harddrives'] = archinstall.arguments['harddrives'].split(',')
|
||||
archinstall.arguments['harddrives'] = [archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.arguments['harddrives']]
|
||||
archinstall.arguments['harddrives'] = [archinstall.BlockDevice(BlockDev) for BlockDev in archinstall.arguments['harddrives'].split(',')]
|
||||
else:
|
||||
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): ",
|
||||
|
|
|
|||
Loading…
Reference in New Issue