fixed some typos and changed up how we detect if we have to enable/install network manager
This commit is contained in:
parent
46c43b25a6
commit
dd61830d2b
|
|
@ -152,11 +152,11 @@ def ask_to_configure_network():
|
||||||
# Optionally configure one network interface.
|
# Optionally configure one network interface.
|
||||||
#while 1:
|
#while 1:
|
||||||
# {MAC: Ifname}
|
# {MAC: Ifname}
|
||||||
interfaces = {'ISO-CONFIG' : 'Copy ISO network configuration to installation','NetworkManager':'Use NetworkManager to control and manage you internet conntetion', **list_interfaces()}
|
interfaces = {'ISO-CONFIG' : 'Copy ISO network configuration to installation','NetworkManager':'Use NetworkManager to control and manage your internet connection', **list_interfaces()}
|
||||||
|
|
||||||
nic = generic_select(interfaces.values(), "Select one network interface to configure (leave blank to skip): ")
|
nic = generic_select(interfaces.values(), "Select one network interface to configure (leave blank to skip): ")
|
||||||
if nic and nic != 'Copy ISO network configuration to installation':
|
if nic and nic != 'Copy ISO network configuration to installation':
|
||||||
if nic == 'Use NetworkManager to control and manage you internet conntetion':
|
if nic == 'Use NetworkManager to control and manage your internet connection':
|
||||||
return {'nic': nic,'NetworkManager':True}
|
return {'nic': nic,'NetworkManager':True}
|
||||||
mode = generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
|
mode = generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
|
||||||
if mode == 'IP (static)':
|
if mode == 'IP (static)':
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,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('NetworkManager',None) == True:
|
elif archinstall.arguments.get('nic',None) == 'Use NetworkManager to control and manage your internet connection':
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue