When systemd is configured with userdb and nss integration, it provides
group memberships in **addition** to those recorded in /etc/group. For
those additional memberships to be considered by nss, the group database
must be configured to merge the result from both /etc/group and the
systemd nss plugin.

Signed-off-by: Martin Hundebøll <[email protected]>
---
 meta/recipes-core/systemd/systemd_261.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_261.3.bb 
b/meta/recipes-core/systemd/systemd_261.3.bb
index 0901736e7c9e..7506b6a1368d 100644
--- a/meta/recipes-core/systemd/systemd_261.3.bb
+++ b/meta/recipes-core/systemd/systemd_261.3.bb
@@ -897,7 +897,7 @@ pkg_postinst:${PN}:libc-glibc () {
        fi
        if ${@bb.utils.contains('PACKAGECONFIG', 'nss', 'true', 'false', d)}; 
then
                sed -e 's#\(^passwd:.*\)#\1 systemd#' \
-                       -e 's#\(^group:.*\)#\1 systemd#' \
+                       -e 's#\(^group:.*\)#\1 [SUCCESS=merge] systemd#' \
                        -e 's#\(^shadow:.*\)#\1 systemd#' \
                        -i $D${sysconfdir}/nsswitch.conf
        fi
-- 
2.55.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#247429): 
https://lists.openembedded.org/g/openembedded-core/message/247429
Mute This Topic: https://lists.openembedded.org/mt/121653520/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

  • [OE-core] [PATCH] systemd: mer... Martin Hundeb?ll via lists.openembedded.org

Reply via email to