Message ID | 20241210132507.2240753-1-alexander.sverdlin@siemens.com |
---|---|
State | Accepted, archived |
Commit | 37b98bc93bc404823cc4bbf9039e4d114aac33fa |
Headers | show |
Series | systemd: actively disable Predictable Network Interface Names if !pni-names | expand |
diff --git a/meta/recipes-core/systemd/systemd_256.8.bb b/meta/recipes-core/systemd/systemd_256.8.bb index c1915d7e941..2b5a90aacbc 100644 --- a/meta/recipes-core/systemd/systemd_256.8.bb +++ b/meta/recipes-core/systemd/systemd_256.8.bb @@ -390,6 +390,9 @@ do_install() { if ! grep -q 'AlternativeNamesPolicy=.*mac' ${D}${nonarch_libdir}/systemd/network/99-default.link; then sed -i '/AlternativeNamesPolicy=/s/$/ mac/' ${D}${nonarch_libdir}/systemd/network/99-default.link fi + else + # Actively disable Predictable Network Interface Names + sed -i 's/^NamePolicy=.*/NamePolicy=/;s/^AlternativeNamesPolicy=.*/AlternativeNamesPolicy=/' ${D}${nonarch_libdir}/systemd/network/99-default.link fi }