From: Piotr Łobacz
Date: Tue, 14 Mar 2023 14:17:50 +0000 (+0100)
Subject: systemd: fix wrong nobody-group assignment
X-Git-Tag: yocto-4.1.4~51
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0ef4386d37f84e8f169cbe3cfa9307010b89bbd;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git
systemd: fix wrong nobody-group assignment
The generated /etc/group file had a wrong group name for nobody-group
which was nobody with same id as nogroup groupd. This was leading to
duplcate groups, with same ids and different names.
More can be read on this link:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11766
Signed-off-by: Piotr Łobacz
Signed-off-by: Alexandre Belloni
Signed-off-by: Richard Purdie
(cherry picked from commit d69fccf2e5d108dd7c6059310924588d36a45865)
Signed-off-by: Steve Sakoman
---
diff --git a/meta/recipes-core/systemd/systemd_251.8.bb b/meta/recipes-core/systemd/systemd_251.8.bb
index 3c87e71485f..991da073683 100644
--- a/meta/recipes-core/systemd/systemd_251.8.bb
+++ b/meta/recipes-core/systemd/systemd_251.8.bb
@@ -217,7 +217,7 @@ rootlibdir ?= "${base_libdir}"
rootlibexecdir = "${rootprefix}/lib"
EXTRA_OEMESON += "-Dnobody-user=nobody \
- -Dnobody-group=nobody \
+ -Dnobody-group=nogroup \
-Drootlibdir=${rootlibdir} \
-Drootprefix=${rootprefix} \
-Ddefault-locale=C \