Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A workaround for NetworkManager #72

Open
YukariChiba opened this issue Sep 11, 2024 · 0 comments
Open

A workaround for NetworkManager #72

YukariChiba opened this issue Sep 11, 2024 · 0 comments

Comments

@YukariChiba
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant