services: greetd: Use mkdir-p in activation script.

Fixes a bug introduced in ee0d1b144c where
reconfiguring a system with ‘greetd-service-type’ would fail with:

  guix system: error: mkdir: File exists "/run/user".

* gnu/services/base.scm (greetd-run-user-activation): Replace mkdir with mkdir-p.

Change-Id: I030d1f57c3292c518b3f17061f75258e8a72141c
This commit is contained in:
Dariqq 2025-02-06 16:50:09 +00:00 committed by Maxim Cournoyer
parent 1790ab3350
commit 4d9eea998b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -3875,9 +3875,11 @@ to handle."
pam))))))
(define (greetd-run-user-activation config)
#~(let ((d "/run/user"))
(mkdir d #o755)
(chmod d #o755)))
#~(begin
(use-modules (guix build utils))
(let ((d "/run/user"))
(mkdir-p d)
(chmod d #o755))))
(define (greetd-shepherd-services config)
(map