diff options
author | Joe Slater <joe.slater@windriver.com> | 2024-01-31 10:53:42 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-03 22:08:25 +0000 |
commit | 78c99af22c4bee46bd75575f7aec7690f10f34cc (patch) | |
tree | b52bdfb80243ae149f54ed0097d45fa98865c05b /meta/recipes-core | |
parent | e1984c2e466f7c45fa9467a5c560609b822d0b29 (diff) | |
download | poky-78c99af22c4bee46bd75575f7aec7690f10f34cc.tar.gz |
eudev: allow for predictable network interface names
Do not suppress renaming by eudev if 'pni-names' is
a distro feature. The previous behavior was to always
suppress renaming.
eudev is used when sysvinit is the init manager.
(From OE-Core rev: dc7cd56df85f28f2a3a3dd97730d475522b7b0f7)
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')
-rw-r--r-- | meta/recipes-core/udev/eudev_3.2.14.bb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/eudev_3.2.14.bb b/meta/recipes-core/udev/eudev_3.2.14.bb index ddb3c3340f..18696679c8 100644 --- a/meta/recipes-core/udev/eudev_3.2.14.bb +++ b/meta/recipes-core/udev/eudev_3.2.14.bb | |||
@@ -49,9 +49,10 @@ do_install:append() { | |||
49 | install -d ${D}${sysconfdir}/udev/rules.d | 49 | install -d ${D}${sysconfdir}/udev/rules.d |
50 | install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules | 50 | install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules |
51 | 51 | ||
52 | # Use classic network interface naming scheme | 52 | # Use classic network interface naming scheme if no 'pni-names' distro feature |
53 | touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules | 53 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pni-names', 'false', 'true', d)}; then |
54 | 54 | touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules | |
55 | fi | ||
55 | } | 56 | } |
56 | 57 | ||
57 | do_install:prepend:class-target () { | 58 | do_install:prepend:class-target () { |