Revert "Give root a valid home directory"

This reverts commit ec7d498b72.
This commit is contained in:
Eelco Dolstra 2016-12-19 11:49:03 +01:00
parent 621a53f64d
commit 05862209de
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -2010,9 +2010,9 @@ void DerivationGoal::startBuilder()
Samba-in-QEMU. */
createDirs(chrootRootDir + "/etc");
writeFile(chrootRootDir + "/etc/passwd", fmt(
"root:x:0:0:Nix build user:%s:/noshell\n"
"nobody:x:65534:65534:Nobody:/:/noshell\n", "/tmp"));
writeFile(chrootRootDir + "/etc/passwd",
"root:x:0:0:Nix build user:/:/noshell\n"
"nobody:x:65534:65534:Nobody:/:/noshell\n");
/* Declare the build user's group so that programs get a consistent
view of the system (e.g., "id -gn"). */