aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2017-02-07 06:46:11 +0000
committerChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2017-02-07 06:46:11 +0000
commit344f7a7d60c51b1de201247b8610826d8988f2ff (patch)
tree9fcd351081850b3773068d2c480ea6e59b5c5df5
parent39372259a16fed3b17c27089b5c51fa02664f50c (diff)
downloadgnu-guix-release_2.tar
gnu-guix-release_2.tar.gz
Fix issue with "/var/log" not existing during container activationrelease_2
-rw-r--r--gnu/services.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/services.scm b/gnu/services.scm
index e645889d30..509fa96897 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -347,6 +347,7 @@ ACTIVATION-SCRIPT-TYPE."
;; Same for 'wtmp', which is populated by mingetty et
;; al.
+ (if (not (file-exists? "/var/log")) (mkdir "/var/log"))
(close-port (open-file "/var/log/wtmp" "a0"))
;; Set up /run/current-system. Among other things this