Revert "Give root a valid home directory"
This reverts commit ec7d498b72
.
This commit is contained in:
parent
621a53f64d
commit
05862209de
1 changed files with 3 additions and 3 deletions
|
@ -2010,9 +2010,9 @@ void DerivationGoal::startBuilder()
|
||||||
Samba-in-QEMU. */
|
Samba-in-QEMU. */
|
||||||
createDirs(chrootRootDir + "/etc");
|
createDirs(chrootRootDir + "/etc");
|
||||||
|
|
||||||
writeFile(chrootRootDir + "/etc/passwd", fmt(
|
writeFile(chrootRootDir + "/etc/passwd",
|
||||||
"root:x:0:0:Nix build user:%s:/noshell\n"
|
"root:x:0:0:Nix build user:/:/noshell\n"
|
||||||
"nobody:x:65534:65534:Nobody:/:/noshell\n", "/tmp"));
|
"nobody:x:65534:65534:Nobody:/:/noshell\n");
|
||||||
|
|
||||||
/* Declare the build user's group so that programs get a consistent
|
/* Declare the build user's group so that programs get a consistent
|
||||||
view of the system (e.g., "id -gn"). */
|
view of the system (e.g., "id -gn"). */
|
||||||
|
|
Loading…
Reference in a new issue