mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
net: Remove NM_IGNORE_DEVICES variable
This variable was originally introduces for the board "Espressobin" (mvebu64): 38db0b55f9
Use a hook in the mvebu64 and mt7623 family config to set ignored devices for NetworkManager instead.
This commit is contained in:
@@ -16,8 +16,7 @@ function add_host_dependencies__install_network_manager() {
|
||||
fi
|
||||
}
|
||||
|
||||
function pre_install_kernel_debs__configure_network_manager()
|
||||
{
|
||||
function pre_install_kernel_debs__configure_network_manager() {
|
||||
display_alert "Extension: ${EXTENSION}: Enabling Network-Manager" "" "info"
|
||||
|
||||
# We can't disable/mask systemd-networkd.service since it is required by Netplan
|
||||
@@ -25,14 +24,6 @@ function pre_install_kernel_debs__configure_network_manager()
|
||||
# Most likely we don't need to wait for nm to get online
|
||||
chroot_sdcard systemctl disable NetworkManager-wait-online.service
|
||||
|
||||
if [[ -n $NM_IGNORE_DEVICES ]]; then
|
||||
mkdir -p "${SDCARD}"/etc/NetworkManager/conf.d/
|
||||
cat <<- EOF > "${SDCARD}"/etc/NetworkManager/conf.d/10-ignore-interfaces.conf
|
||||
[keyfile]
|
||||
unmanaged-devices=$NM_IGNORE_DEVICES
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Copy network config files into the appropriate folders
|
||||
display_alert "Configuring" "NetworkManager and Netplan" "info"
|
||||
local netplan_config_src_folder="${EXTENSION_DIR}/config-nm/netplan/"
|
||||
|
||||
Reference in New Issue
Block a user