kmscon: install the PAM service file to /etc/pam.d

Since 10.1.0 kmscon installs its PAM service file to ${libdir}/pam.d.
libpam in oe-core is built with -Dvendordir=${sysconfdir}, so it reads
service files from /etc/pam.d only. The kmscon file in /usr/lib/pam.d
is never read and PAM falls back to /etc/pam.d/other, which denies
everything. Move the file back to ${sysconfdir}/pam.d when kmscon is
built with libseat, the only case in which it is installed. Tested by
building kmscon with libseat for corei7-64.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Markus Volk authored and Khem Raj committed 2026-11-13 09:11:18 -08:00
1 parent b7c4ce8352
commit 920d2a5386
1 file changed
+6
@@ -60,6 +60,12 @@ do_install:append() {
rm -rf ${D}${libdir}/systemd
fi
if ${@bb.utils.contains('PACKAGECONFIG', 'libseat', 'true', 'false', d)}; then
install -d ${D}${sysconfdir}/pam.d
mv ${D}${libdir}/pam.d/kmscon ${D}${sysconfdir}/pam.d/kmscon
rmdir ${D}${libdir}/pam.d
fi
if ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'true', 'false', d)}; then
mv ${D}${sysconfdir}/kmscon/kmscon.conf.example ${D}${sysconfdir}/kmscon/kmscon.conf
sed -e "s@#drm@drm@g" \