fixed desktop install from config

This commit is contained in:
Yash Tripathi 2021-05-20 13:22:58 +05:30 committed by GitHub
parent c2f3b9e208
commit 86fd64ef8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -179,8 +179,6 @@ def ask_user_questions():
# Ask for archinstall-specific profiles (such as desktop environments etc)
if not archinstall.arguments.get('profile', None):
archinstall.arguments['profile'] = archinstall.select_profile(archinstall.list_profiles(filter_top_level_profiles=True))
else:
archinstall.arguments['profile'] = archinstall.list_profiles()[archinstall.arguments['profile']]
# Check the potentially selected profiles preparations to get early checks if some additional questions are needed.
if archinstall.arguments['profile'] and archinstall.arguments['profile'].has_prep_function():
@ -410,8 +408,6 @@ else:
# Temporarily disabling keep_partitions if config file is loaded
archinstall.arguments['harddrive'].keep_partitions = False
# Temporary workaround to make Desktop Environments work
archinstall.storage['_desktop_profile'] = archinstall.arguments.get('desktop', None)
if archinstall.arguments.get('profile', None):
archinstall.arguments['profile'] = Profile(installer=None, path=archinstall.arguments['profile']['path'])
archinstall.arguments['profile'] = archinstall.Profile(None, archinstall.arguments.get('desktop', None))
perform_installation_steps()