[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: activation: Pass '-d HOME' to 'usermod'.
From: |
Ludovic Courtès |
Subject: |
02/05: activation: Pass '-d HOME' to 'usermod'. |
Date: |
Tue, 27 Mar 2018 08:51:52 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 82b71ac366ef154400653d264b46b7aa3520f393
Author: Ludovic Courtès <address@hidden>
Date: Tue Mar 27 11:48:01 2018 +0200
activation: Pass '-d HOME' to 'usermod'.
Fixes a bug whereby changes to user home directories in the OS config
would never be effective.
Reported by Pierre Neidhardt <address@hidden>.
* gnu/build/activation.scm (modify-user): Pass '-d HOME'.
---
gnu/build/activation.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm
index 6c0d603..68ecd6b 100644
--- a/gnu/build/activation.scm
+++ b/gnu/build/activation.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <address@hidden>
+;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès
<address@hidden>
;;; Copyright © 2015 Mark H Weaver <address@hidden>
;;;
;;; This file is part of GNU Guix.
@@ -179,7 +179,8 @@ properties. Return #t on success."
`("-G" ,(string-join supplementary-groups ","))
'())
,@(if comment `("-c" ,comment) '())
- ;; Don't use '--move-home', so ignore HOME.
+ ;; Don't use '--move-home'.
+ ,@(if home `("-d" ,home) '())
,@(if shell `("-s" ,shell) '())
,name)))
(zero? (apply system* "usermod" args))))