Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index c24a7806..9afefa0e 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -203,7 +203,13 @@ def load_config():
storage['gfx_driver_packages'] = AVAILABLE_GFX_DRIVERS.get(arguments.get('gfx_driver', None), None)
if arguments.get('servers', None) is not None:
storage['_selected_servers'] = arguments.get('servers', None)
-
+ if nic_config := arguments.get('nic', {}):
+ if nic_config.get('nic', '') == 'Copy ISO network configuration to installation':
+ arguments['nic'] = {'type': 'iso_config'}
+ elif 'NetworkManager' in nic_config:
+ arguments['nic'] = {'type': 'network_manager', 'NetworkManager': True}
+ else:
+ arguments['nic'] = {k if k != 'nic' else 'type': v for k, v in nic_config.items()}
def post_process_arguments(arguments):
storage['arguments'] = arguments