From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Legoll Subject: Re: [PATCH 2/9] activation: Allow /var/lib to be a home directory. Date: Fri, 2 Sep 2016 17:31:36 +0200 Message-ID: References: <20160901155711.7388-1-david@craven.ch> <20160901155711.7388-2-david@craven.ch> <877fautt35.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfqRP-0001QV-NM for guix-devel@gnu.org; Fri, 02 Sep 2016 11:31:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfqRN-0005T2-Rs for guix-devel@gnu.org; Fri, 02 Sep 2016 11:31:38 -0400 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:33060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfqRN-0005Sy-NO for guix-devel@gnu.org; Fri, 02 Sep 2016 11:31:37 -0400 Received: by mail-qk0-x233.google.com with SMTP id z190so122549471qkc.0 for ; Fri, 02 Sep 2016 08:31:37 -0700 (PDT) In-Reply-To: <877fautt35.fsf@member.fsf.org> 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: =?UTF-8?B?5a6L5paH5q2m?= Cc: guix-devel Hello, > Also, it's better fit in the 'add-user' procudere, before > the run of `useradd' command. And instead of handing > this particular case, how about create any parent directory > of HOME? like: > > [...] > ;; create the parent directory of HOME. > (when home (mkdir-p (dirname home))) > > ;; Use 'useradd' from the Shadow package. > [...] This looks like a better idea IMHO (more generic) -- Vincent Legoll