fallback added for when profile is null/empty

This commit is contained in:
Yash Tripathi 2021-05-21 01:58:32 +05:30 committed by Dylan Taylor
parent bc58ec047d
commit 7fefd55a0c
1 changed files with 4 additions and 1 deletions

View File

@ -412,6 +412,9 @@ else:
# Temporarily disabling keep_partitions if config file is loaded
archinstall.arguments['harddrive'].keep_partitions = False
# Temporary workaround to make Desktop Environments work
archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('profile', None))
if archinstall.arguments.get('profile', None) is not None:
archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('profile', None))
else:
archinstall.arguments['profile'] = None
perform_installation_steps()