greetd: add pam configuration

- pass pam environment
- unlock keyring on login
- dont require bash
This commit is contained in:
Markus Volk 2024-11-18 18:12:57 +01:00
parent 00fb2ba50e
commit 8673fe5ad4
2 changed files with 11 additions and 9 deletions

View File

@ -1,9 +1,11 @@
#%PAM-1.0 #%PAM-1.0
auth requisite pam_nologin.so auth requisite pam_nologin.so
auth include common-auth auth include common-auth
account include common-account auth required pam_env.so
password include common-password auth optional pam_gnome_keyring.so
session required pam_loginuid.so account include common-account
session optional pam_keyinit.so force revoke password include common-password
session include common-session session required pam_loginuid.so
session optional pam_keyinit.so force revoke
session include common-session
session optional pam_gnome_keyring.so auto_start

View File

@ -154,7 +154,7 @@ do_install:append() {
} }
USERADD_PACKAGES = "${PN}" USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --user-group --groups video --no-create-home --shell /bin/bash greeter" USERADD_PARAM:${PN} = "--system --user-group --groups video --no-create-home --shell /bin/sh greeter"
FILES:${PN} += "${sysconfdir} ${systemd_system_unitdir}" FILES:${PN} += "${sysconfdir} ${systemd_system_unitdir}"