| Message ID | 20261008120926.541493-1-martin@geanix.com |
|---|---|
| State | New |
| Headers | show |
| Series | systemd: merge group members from /etc/group and nss-systemd | expand |
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
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 <martin@geanix.com> --- meta/recipes-core/systemd/systemd_261.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)