index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | examples/swiss.py | 17 |
diff --git a/examples/swiss.py b/examples/swiss.py index f60ff60f..4eb51a05 100644 --- a/examples/swiss.py +++ b/examples/swiss.py @@ -393,19 +393,10 @@ def os_setup(installation): if archinstall.arguments['swap']: installation.setup_swap('zram') - # If user selected to copy the current ISO network configuration - # Perform a copy of the config - if archinstall.arguments.get('nic', {}).get('type', '') == 'iso_config': - installation.copy_iso_network_config( - enable_services=True) # Sources the ISO network configuration to the install medium. - elif archinstall.arguments.get('nic', {}).get('NetworkManager', False): - installation.add_additional_packages("networkmanager") - installation.enable_service('NetworkManager.service') - # Otherwise, if a interface was selected, configure that interface - elif archinstall.arguments.get('nic', {}): - installation.configure_nic(**archinstall.arguments.get('nic', {})) - installation.enable_service('systemd-networkd') - installation.enable_service('systemd-resolved') + network_config = archinstall.arguments.get('nic', None) + + if network_config: + network_config.config_installer(installation) if archinstall.arguments.get('audio', None) is not None: installation.log(f"This audio server will be used: {archinstall.arguments.get('audio', None)}",level=logging.INFO) |