summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Craven <david@craven.ch>2016-08-26 21:45:57 +0200
committerDavid Craven <david@craven.ch>2016-09-06 17:48:59 +0200
commit6526d43ea4fb0cd151a0d5e9a072c651c1c963d1 (patch)
tree8615943a98fd6c59b8ce1fb9a5f325a0cd47d69f
parentf2e7be4e29fb847207ebdc86023b9283700de42f (diff)
downloadguix-6526d43ea4fb0cd151a0d5e9a072c651c1c963d1.tar.gz
activation: Allow home directories to be created under /var/lib.
* gnu/build/activation.scm (activate-user+groups): Make sure /var/lib
  exists.
-rw-r--r--gnu/build/activation.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm
index 10aa58d85c..7dc40b0961 100644
--- a/gnu/build/activation.scm
+++ b/gnu/build/activation.scm
@@ -233,6 +233,9 @@ numeric gid or #f."
   ;; 'groupadd' aborts if the file doesn't already exist.
   (touch "/etc/group")
 
+  ;; Allow home directories to be created under /var/lib.
+  (mkdir "/var/lib")
+
   ;; Create the root account so we can use 'useradd' and 'groupadd'.
   (activate-user (find (match-lambda
                         ((name (? zero?) _ ...) #t)