You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
With the method below, NM (with libudev-zero) works fine BEFORE mdev starts. But NM would not think a device is ready without udev/eudev for now. We are working on it.
No need to patch since libudev-zero works with it now.
Use the helper (contrib/helper.c) in mdev.conf like this, but under the rule SUBSYSTEM=net;.*. Using the rule -.* also make sense, not recommended though.
If you want to do something before notifying NetworkManager, like running a script that configure network interfaces in mdev.conf, just execute the helper in the script where you think the work is done.
This trick works on my system without running udev or eudev, so please let me know if not work on yours.
NetworkManager relies on it, explicitly the udev's monitor function and will start to use a real network interface (will switch from unmanaged state) only after udev notifies the corresponding ADD event with necessary information like:
From the documentation of NetworkManager:
(https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/docs/internal/device.md)
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 insrc/core/devices/nm-device.c
:note that this workaround means that network interfaces should not be touched by udev, e.g. by modifying the mac or naming
The text was updated successfully, but these errors were encountered: