summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-extended/pam
diff options
context:
space:
mode:
Diffstat (limited to 'meta-phosphor/recipes-extended/pam')
-rw-r--r--meta-phosphor/recipes-extended/pam/libpam_%.bbappend7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-extended/pam/libpam_%.bbappend b/meta-phosphor/recipes-extended/pam/libpam_%.bbappend
new file mode 100644
index 0000000000..714496a947
--- /dev/null
+++ b/meta-phosphor/recipes-extended/pam/libpam_%.bbappend
@@ -0,0 +1,7 @@
+do_install_append() {
+ # The libpam recipe will always add a pam_systemd.so line to
+ # common-session if systemd is enabled; however systemd only
+ # builds pam_systemd.so if logind is enabled, and we disable
+ # that package. So, remove the pam_systemd.so line here.
+ sed -i '/pam_systemd.so/d' ${D}${sysconfdir}/pam.d/common-session
+}