mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
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:
parent
1790ab3350
commit
4d9eea998b
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue