gnu: Move root's home directory to /root.
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Feb 2014 23:18:25 +0000 (00:18 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 7 Feb 2014 23:18:25 +0000 (00:18 +0100)
* gnu/system.scm (operating-system-derivation): Change root's
  'home-directory' to "/root".
* gnu/system/vm.scm (operating-system-default-contents): Add /root.

gnu/system.scm
gnu/system/vm.scm

index e06b810..6918d5b 100644 (file)
@@ -317,7 +317,7 @@ alias ll='ls -l'
                             (password "")
                             (uid 0) (gid 0)
                             (comment "System administrator")
-                            (home-directory "/"))
+                            (home-directory "/root"))
                           (append (operating-system-users os)
                                   (append-map service-user-accounts
                                               services))))
index 1bdd2c6..dea7d05 100644 (file)
@@ -485,6 +485,7 @@ basic contents of the root file system of OS."
               (directory "/tmp")
               (directory "/var/nix/profiles/per-user/root" 0 0)
 
+              (directory "/root" 0 0)             ; an exception
               ,@(append-map user-directories
                             (operating-system-users os))))))