Added some debugging.

This commit is contained in:
Anton Hvornum 2021-03-08 14:58:31 +01:00
parent 30467ca50f
commit 2fe8a173f4
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,6 @@ if archinstall.arguments.get('harddrive', None):
archinstall.arguments['harddrive'] = archinstall.BlockDevice(archinstall.arguments['harddrive'])
else:
archinstall.arguments['harddrive'] = archinstall.select_disk(archinstall.all_disks())
print(type(archinstall.arguments['harddrive']), archinstall.arguments['harddrive'])
# Perform a quick sanity check on the selected harddrive.
# 1. Check if it has partitions
@ -168,6 +167,8 @@ if archinstall.arguments['harddrive'].has_partitions():
elif option == 'format-all':
archinstall.arguments['harddrive'].keep_partitions = False
print(type(archinstall.arguments['harddrive']), archinstall.arguments['harddrive'])
# Get disk encryption password (or skip if blank)
if not archinstall.arguments.get('!encryption-password', None):
archinstall.arguments['!encryption-password'] = archinstall.get_password(prompt='Enter disk encryption password (leave blank for no encryption): ')