diff options
| -rw-r--r-- | meta/recipes-core/systemd/systemd/0001-NamePolicy.patch | 33 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd_255.4.bb | 1 |
2 files changed, 34 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 @@ | |||
| 1 | From 9bb09886320eb286108fb370b2634a66b3e3b9ff Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Joe Slater <joe.slater@windriver.com> | ||
| 3 | Date: Thu, 21 Mar 2024 16:28:31 +0000 | ||
| 4 | Subject: [PATCH] systemd: enable mac based names in NamePolicy | ||
| 5 | |||
| 6 | The default NamePolicy for network interface names does not | ||
| 7 | include names based on mac addresses. Some BSPs, though, do | ||
| 8 | not provide information to compute other names, so we enable | ||
| 9 | mac names as a last resort. | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [enable feature] | ||
| 12 | |||
| 13 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
| 14 | --- | ||
| 15 | network/99-default.link | 4 ++-- | ||
| 16 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/network/99-default.link b/network/99-default.link | ||
| 19 | index 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 | -- | ||
| 32 | 2.35.5 | ||
| 33 | |||
diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.4.bb index bcef3e6b7a..b02e44d9c0 100644 --- a/meta/recipes-core/systemd/systemd_255.4.bb +++ b/meta/recipes-core/systemd/systemd_255.4.bb | |||
| @@ -28,6 +28,7 @@ SRC_URI += " \ | |||
| 28 | file://systemd-pager.sh \ | 28 | file://systemd-pager.sh \ |
| 29 | file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ | 29 | file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ |
| 30 | file://0008-implment-systemd-sysv-install-for-OE.patch \ | 30 | file://0008-implment-systemd-sysv-install-for-OE.patch \ |
| 31 | file://0001-NamePolicy.patch \ | ||
| 31 | " | 32 | " |
| 32 | 33 | ||
| 33 | # patches needed by musl | 34 | # patches needed by musl |
