From 8acc69f9baea2c172dcf4c7f6e29d881b403a9a1 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 13 Dec 2022 11:53:04 -0600 Subject: [PATCH] mkrootfs: Disable pam_sss Fedora's default PAM configuration assumes SSSD is installed. Since it isn't, the system log is littered with errors about it: > PAM unable to dlopen(/usr/lib64/security/pam_sss.so): /usr/lib64/security/pam_sss.so: cannot open shared object file: No such file or directory > PAM adding faulty module: /usr/lib64/security/pam_sss.so --- mkrootfs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkrootfs.sh b/mkrootfs.sh index 4082ece..5e28b78 100644 --- a/mkrootfs.sh +++ b/mkrootfs.sh @@ -73,6 +73,8 @@ chroot "${destdir}" systemctl disable \ systemd-homed \ systemd-userdbd ln -sf /run/resolv.conf "${destdir}"/etc/resolv.conf +grep -lR pam_sss "${destdir}"/etc/pam.d \ + | xargs sed -i /pam_sss/d umask 0022 mksquashfs "${destdir}" "${destdir}/boot/${dest}" \