Revert "Fixed issue with no network configueration"

This reverts commit dbe7f3fcb8.
This commit is contained in:
advaithm 2021-04-05 20:47:42 +05:30
parent 4c0c95a88c
commit e2a6a85d66
1 changed files with 1 additions and 3 deletions

View File

@ -317,9 +317,6 @@ def perform_installation(device, boot_partition, language, mirrors):
# Perform a copy of the config
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.
elif archinstall.arguments.get('nic',None) == None:
#skip if we don't have a network
pass
elif archinstall.arguments.get('nic',{}).get('NetworkManager',False):
installation.add_additional_packages("networkmanager")
installation.enable_service('NetworkManager.service')
@ -329,6 +326,7 @@ def perform_installation(device, boot_partition, language, mirrors):
installation.enable_service('systemd-networkd')
installation.enable_service('systemd-resolved')
if archinstall.arguments.get('packages', None) and archinstall.arguments.get('packages', None)[0] != '':
installation.add_additional_packages(archinstall.arguments.get('packages', None))