diff options
author | Joe Slater <joe.slater@windriver.com> | 2024-01-18 10:04:31 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-21 12:27:12 +0000 |
commit | 4a126e31704ab45d8da425fe4e57f3eec817f9f3 (patch) | |
tree | 1a847df13d0fb80386948ecbe1ba83330c857650 /meta/recipes-core/udev/eudev/netifnames.patch | |
parent | 269d6cf70af3b05b7909ce213a0d8c28427be723 (diff) | |
download | poky-4a126e31704ab45d8da425fe4e57f3eec817f9f3.tar.gz |
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>
Diffstat (limited to 'meta/recipes-core/udev/eudev/netifnames.patch')
-rw-r--r-- | meta/recipes-core/udev/eudev/netifnames.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/eudev/netifnames.patch b/meta/recipes-core/udev/eudev/netifnames.patch new file mode 100644 index 0000000000..8f6e9a1538 --- /dev/null +++ b/meta/recipes-core/udev/eudev/netifnames.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | eudev: consider ID_NET_NAME_MAC as an interface name | ||
2 | |||
3 | eudev might not create names based on slot or path. | ||
4 | |||
5 | Upstream-Status: Submitted [github.com/eudev-project/eudev/pull/274] | ||
6 | |||
7 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
8 | |||
9 | --- a/rules/80-net-name-slot.rules | ||
10 | +++ b/rules/80-net-name-slot.rules | ||
11 | @@ -10,5 +10,6 @@ ENV{net.ifnames}=="0", GOTO="net_name_sl | ||
12 | NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}" | ||
13 | NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}" | ||
14 | NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}" | ||
15 | +NAME=="", ENV{ID_NET_NAME_MAC}!="", NAME="$env{ID_NET_NAME_MAC}" | ||
16 | |||
17 | LABEL="net_name_slot_end" | ||