From 14efab6d5e70ebcc597d437ee4ddae49ff25e4e7 Mon Sep 17 00:00:00 2001 From: h8d13 Date: Mon, 16 Feb 2026 18:02:54 +0100 Subject: [PATCH] Fix iwd case switch => Remove from defaults --- archinstall/default_profiles/desktop.py | 2 -- archinstall/lib/network/network_handler.py | 19 +++++++++---------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/archinstall/default_profiles/desktop.py b/archinstall/default_profiles/desktop.py index b40eb54e81..17ea1f2b02 100644 --- a/archinstall/default_profiles/desktop.py +++ b/archinstall/default_profiles/desktop.py @@ -31,8 +31,6 @@ def packages(self) -> list[str]: 'openssh', 'htop', 'wget', - 'iwd', - 'wireless_tools', 'smartmontools', 'xdg-utils', ] diff --git a/archinstall/lib/network/network_handler.py b/archinstall/lib/network/network_handler.py index ceed345296..84925b085a 100644 --- a/archinstall/lib/network/network_handler.py +++ b/archinstall/lib/network/network_handler.py @@ -16,25 +16,24 @@ def install_network_config( enable_services=True, # Sources the ISO network configuration to the install medium. ) case NicType.NM | NicType.NM_IWD: - # Install NetworkManager package for both cases packages = ['networkmanager'] - # Default back-end only for non-iwd - if network_config.type == NicType.NM: - packages.append('wpa_supplicant') + if network_config.type == NicType.NM: # default + packages.extend(['wpa_supplicant', 'wireless_tools']) + else: # iwd better support for some wifi cards + packages.append('iwd') installation.add_additional_packages(packages) - # Desktop profile -> Always add applet - if profile_config and profile_config.profile: - if profile_config.profile.is_desktop_profile(): - installation.add_additional_packages('network-manager-applet') + # in any case if desktop + if profile_config and profile_config.profile and profile_config.profile.is_desktop_profile(): + installation.add_additional_packages('network-manager-applet') installation.enable_service('NetworkManager.service') + + # special handling for NM iwd service + conf if network_config.type == NicType.NM_IWD: - # NM_IWD special handling installation.configure_nm_iwd() installation.disable_service('iwd.service') - case NicType.MANUAL: for nic in network_config.nics: installation.configure_nic(nic)