Skip to content

A workaround for NetworkManager #72

@YukariChiba

Description

@YukariChiba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions