From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 2/9] activation: Allow /var/lib to be a home directory. Date: Thu, 1 Sep 2016 17:57:04 +0200 Message-ID: <20160901155711.7388-2-david@craven.ch> References: <20160901155711.7388-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfUNU-0005mD-CS for guix-devel@gnu.org; Thu, 01 Sep 2016 11:58:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfUNH-0004U6-Cd for guix-devel@gnu.org; Thu, 01 Sep 2016 11:58:08 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:56181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfUNG-0004SZ-3A for guix-devel@gnu.org; Thu, 01 Sep 2016 11:57:55 -0400 In-Reply-To: <20160901155711.7388-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/build/activation.scm (activate-user): 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 10aa58d..3abfdd6 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 /var/lib/application to be a home directory + (mkdir-p "/var/lib") + ;; Create the root account so we can use 'useradd' and 'groupadd'. (activate-user (find (match-lambda ((name (? zero?) _ ...) #t) -- 2.9.0