poky/meta/recipes-core/udev/eudev/netifnames.patch
Joe Slater 4a126e3170 eudev: modify predictable network if name search
Consider a name based on mac address in addition to
those based on slot or path.

Note that as of this commit predictable naming is
suppressed by eudev, but can be enabled by removing
/etc/udev/rules.d/80-net-name-slot.rules from the
root filesystem.

(From OE-Core rev: 4a7b42fcf6981d3120c08091a7ed3d4d7bcd41f0)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-21 12:27:12 +00:00

18 lines
665 B
Diff

eudev: consider ID_NET_NAME_MAC as an interface name
eudev might not create names based on slot or path.
Upstream-Status: Submitted [github.com/eudev-project/eudev/pull/274]
Signed-off-by: Joe Slater <joe.slater@windriver.com>
--- a/rules/80-net-name-slot.rules
+++ b/rules/80-net-name-slot.rules
@@ -10,5 +10,6 @@ ENV{net.ifnames}=="0", GOTO="net_name_sl
NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"
+NAME=="", ENV{ID_NET_NAME_MAC}!="", NAME="$env{ID_NET_NAME_MAC}"
LABEL="net_name_slot_end"