From 6526d43ea4fb0cd151a0d5e9a072c651c1c963d1 Mon Sep 17 00:00:00 2001 From: David Craven Date: Fri, 26 Aug 2016 21:45:57 +0200 Subject: [PATCH] activation: Allow home directories to be created under /var/lib. * gnu/build/activation.scm (activate-user+groups): Make sure /var/lib exists. --- gnu/build/activation.scm | 3 +++ 1 file changed, 3 insertions(+) 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)