summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0001-NamePolicy.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0001-NamePolicy.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch b/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch
new file mode 100644
index 0000000000..46955cbcbb
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch
@@ -0,0 +1,33 @@
1From 9bb09886320eb286108fb370b2634a66b3e3b9ff Mon Sep 17 00:00:00 2001
2From: Joe Slater <joe.slater@windriver.com>
3Date: Thu, 21 Mar 2024 16:28:31 +0000
4Subject: [PATCH] systemd: enable mac based names in NamePolicy
5
6The default NamePolicy for network interface names does not
7include names based on mac addresses. Some BSPs, though, do
8not provide information to compute other names, so we enable
9mac names as a last resort.
10
11Upstream-Status: Inappropriate [enable feature]
12
13Signed-off-by: Joe Slater <joe.slater@windriver.com>
14---
15 network/99-default.link | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/network/99-default.link b/network/99-default.link
19index 429ac31e80..543ce54661 100644
20--- a/network/99-default.link
21+++ b/network/99-default.link
22@@ -15,6 +15,6 @@
23 OriginalName=*
24
25 [Link]
26-NamePolicy=keep kernel database onboard slot path
27-AlternativeNamesPolicy=database onboard slot path
28+NamePolicy=keep kernel database onboard slot path mac
29+AlternativeNamesPolicy=database onboard slot path mac
30 MACAddressPolicy=persistent
31--
322.35.5
33