fixed network manager check

This commit is contained in:
Advaith Madhukar 2021-04-04 14:42:19 +05:30
parent 9daa3f4924
commit 8ad4a7d1c4
No known key found for this signature in database
GPG Key ID: AD53AB4874684213
1 changed files with 2 additions and 2 deletions

View File

@ -317,7 +317,7 @@ def perform_installation(device, boot_partition, language, mirrors):
# Perform a copy of the config # Perform a copy of the config
if archinstall.arguments.get('nic', None) == 'Copy ISO network configuration to installation': if archinstall.arguments.get('nic', None) == 'Copy ISO network configuration to installation':
installation.copy_ISO_network_config(enable_services=True) # Sources the ISO network configuration to the install medium. installation.copy_ISO_network_config(enable_services=True) # Sources the ISO network configuration to the install medium.
elif archinstall.arguments.get('nic',None) == 'Use NetworkManager to control and manage your internet connection': elif archinstall.arguments.get('nic',{}).get('NetworkManager',False):
installation.add_additional_packages("networkmanager") installation.add_additional_packages("networkmanager")
installation.enable_service('NetworkManager.service') installation.enable_service('NetworkManager.service')
# Otherwise, if a interface was selected, configure that interface # Otherwise, if a interface was selected, configure that interface