]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd: actively disable Predictable Network Interface Names if !pni-names
authorAlexander Sverdlin <alexander.sverdlin@siemens.com>
Tue, 10 Dec 2024 13:25:03 +0000 (14:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Dec 2024 13:40:46 +0000 (13:40 +0000)
commit37b98bc93bc404823cc4bbf9039e4d114aac33fa
tree1a75481928ea1989413e9b59c03419df479d8f0a
parent856d828963a1bd3b2be0b5eef6df97ea682412c3
systemd: actively disable Predictable Network Interface Names if !pni-names

Currently pni-names PACKAGECONFIG option adds "mac" names policy if
selected, but nothing otherwise. In systemd Predictable Network Interface
Names are applied by default which leads to inconsistend behaviour.

One could think that pni-names in DISTRO_FEATURES would enable or disable
Predictable Network Interface Names, but currently if not present it's
only actively disabled for QEMU via kernel command line
(commit 9e9c33d51e40
("qemuboot/runqemu: Fix 6.2 and later kernel network device naming")).
It has no effect on the real HW. If the option is present, it merely adds
"mac" into default NamePolicy, which may or may not have observable
effects.

Make pni-names semantics more consistent by actively suppressing
Predictable Network Interface Names if the feature is not present.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-core/systemd/systemd_256.8.bb