guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#65335] [PATCH 2/4] gnu: services: activation-script: Ensure /var/ru


From: Nicolas Graves
Subject: [bug#65335] [PATCH 2/4] gnu: services: activation-script: Ensure /var/run existence.
Date: Wed, 16 Aug 2023 11:29:27 +0200

---
 gnu/services.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services.scm b/gnu/services.scm
index 109e050a23..a992800796 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -670,6 +670,7 @@ (define (activation-script gexps)
                       ;; Make sure the user accounting database exists.  If it
                       ;; does not exist, 'setutxent' does not create it and
                       ;; thus there is no accounting at all.
+                      (mkdir-p "/var/run")
                       (close-port (open-file "/var/run/utmpx" "a0"))
 
                       ;; Same for 'wtmp', which is populated by mingetty et
-- 
2.41.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]