-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
From the documentation of NetworkManager:
(https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/docs/internal/device.md)
PLATFORM_INIT: NetworkManager is waiting for udev to announce the device. Note that NetworkManager can't touch the device until then because udev might perform operations on it (such as renaming or changing the MAC). Unrealized devices (see later) have this flag set.
udev needs to do the right things to make networkmanager think it's ready (but I haven't figured out exactly what those things are)
a simple solution is to enable force_platform_init
by default in src/core/devices/nm-device.c
:
--- a/src/core/devices/nm-device.c
+++ b/src/core/devices/nm-device.c
@@ -7690,7 +7690,7 @@
assume_state_connection_uuid,
set_nm_owned,
unmanaged_user_explicit,
- FALSE);
+ TRUE);
return TRUE;
}
note that this workaround means that network interfaces should not be touched by udev, e.g. by modifying the mac or naming