Skip to content

Commit

Permalink
Merge pull request NixOS#11350 from noamraph/homeless-shelter-to-proc…
Browse files Browse the repository at this point in the history
…-changelog

Add changelog for homeless-shelter-to-proc
  • Loading branch information
edolstra authored Aug 21, 2024
2 parents af26fe3 + a643c9b commit fa49d2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/manual/rl-next/homeless-shelter-to-proc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
synopsis: On linux, set $HOME=/proc/homeless-shelter instead of /homeless-shelter
issues: [8313, 11295]
prs: [11300]
---

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.

0 comments on commit fa49d2e

Please sign in to comment.