diff --git a/build/21-greetd.sh b/build/21-greetd.sh index 1e6100d..44e0b9b 100755 --- a/build/21-greetd.sh +++ b/build/21-greetd.sh @@ -113,6 +113,20 @@ grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+password-auth' /etc/pam grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/greetd && { echo "FEHLER: auth system-auth-Include noch in /etc/pam.d/greetd"; exit 1; } grep -q 'pam_gnome_keyring\.so' /etc/pam.d/greetd || { echo "FEHLER: Keyring-PAM fehlt in /etc/pam.d/greetd"; exit 1; } +# Noctalia-Lock nutzt PAM-Service "login" (Upstream: src/shell/lockscreen/ +# lock_screen.cpp). system-auth enthaelt pam_fprintd; Noctalia treibt den +# Reader gleichzeitig per D-Bus ("can't share the sensor") -> Passwort hing +# bis zum Fingerprint-Timeout. Daher login-Auth auf password-auth umhaengen +# (fingerprint-frei, gleiche Technik wie greetd oben). Finger am Lock kommt +# weiter per D-Bus sofort, Passwort per PAM sofort. /etc/pam.d/login ist +# kein authselect-File (bleibt bei Profil-Updates erhalten). +if grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/login; then + sed -i -E 's/^auth([[:space:]]+(substack|include)[[:space:]]+)system-auth([[:space:]]*)$/auth\1password-auth\3/' /etc/pam.d/login + echo "login-PAM: auth-Substack auf password-auth umgehaengt (fingerprint-frei fuer Noctalia-Lock)" +fi +grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+password-auth' /etc/pam.d/login || { echo "FEHLER: password-auth-Substack fehlt in /etc/pam.d/login"; exit 1; } +grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/login && { echo "FEHLER: auth system-auth-Include noch in /etc/pam.d/login"; exit 1; } + # bootc-Hygiene: /var-Inhalte aus dem Build werden beim Deployment verworfen # und wuerden nur den var-tmpfiles-Lint triggern. Die /etc-Anteile des Setups # (PAM) bleiben erhalten; /var/lib/noctalia-greeter wird zur Laufzeit via