From 3ccb0855a7a6b147e5025855c6376747ba72986a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 19 Sep 2013 16:03:21 +0100 Subject: libpam: only use pam_systemd.so if systemd is enabled So that sysvinit images don't warn on every login only add it to common-session if systemd is a DISTRO_FEATURE. [ YOCTO #3805 ] Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-extended/pam/libpam_1.1.6.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-extended/pam/libpam_1.1.6.bb') diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb index 448a67b71b..f7493c595d 100644 --- a/meta/recipes-extended/pam/libpam_1.1.6.bb +++ b/meta/recipes-extended/pam/libpam_1.1.6.bb @@ -102,6 +102,10 @@ do_install() { # The lsb requires unix_chkpwd has setuid permission chmod 4755 ${D}${sbindir}/unix_chkpwd + + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then + echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session + fi } python do_pam_sanity () { -- cgit v1.2.3