1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

Update doc/manual/rl-next/homeless-shelter-to-proc.md

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
Noam Yorav-Raphael 2024-08-21 19:58:16 +03:00 committed by GitHub
parent 02446918f4
commit a643c9b1f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,6 @@ issues: [8313, 11295]
prs: [11300] prs: [11300]
--- ---
When building, $HOME is set to a non-existing dir. Previously it was always set to `/homeless-shelter`. After a build, the builder verifies that it doesn't exist. In some scenarios (specifically when using the linux sandbox with a single-user installation), it is possible to create the `/homeless-shelter` directory, and some tools will create it, resulting in a build error. When building, $HOME is set to a non-existing directory. Previously it was always set to `/homeless-shelter`. Before a build, Nix verifies that it doesn't exist. In some scenarios (specifically when using the Linux sandbox with a single-user installation), it is possible to create the `/homeless-shelter` directory, and some tools will create it, resulting in a build error.
Now, on Linux, $HOME is set to `/proc/homeless-shelter`. This directory can never be created, since `/proc` is a virtual filesystem. This resolves the issue. Now, on Linux, $HOME is set to `/proc/homeless-shelter`. This directory can never be created, since `/proc` is a virtual filesystem. This resolves the issue.