services: greetd: Create runfiles in a tmpfs.

Greetd's initial-session (i.e. auto-login) functionality requires runfiles
to be deleted on shutdown.  Use a tmpfs to ensure said runfiles do not linger.

* gnu/services/base.scm (make-greetd-terminal-configuration-file): Add
“runfile” to configuration.
(%greetd-file-systems): Add a tmpfs for “/run/greetd/runfiles”.

Change-Id: I07319d5d8bdb1e18fb0074b67d5c9cb9fb49b04a
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Luca Matei Pintilie 2025-09-02 22:20:18 +02:00 committed by Liliana Marie Prikler
parent e2fadf0083
commit 3d4620ab26
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -4029,6 +4029,7 @@ to handle."
config-file-name
"[general]\n"
"source_profile = " (if source-profile? "true" "false") "\n"
"runfile = /run/greetd/runfiles/greetd-" terminal-vt ".run\n"
"[terminal]\n"
"vt = " terminal-vt "\n"
"switch = " (if terminal-switch "true" "false") "\n"
@ -4050,6 +4051,14 @@ to handle."
(check? #f)
(flags '(no-suid no-dev no-exec))
(options "mode=0755")
(create-mount-point? #t))
(file-system
(device "none")
(mount-point "/run/greetd/runfiles")
(type "tmpfs")
(check? #f)
(flags '(no-suid no-dev no-exec))
(options "mode=0755")
(create-mount-point? #t))))
(define %greetd-pam-mount-rules