* Put chroots in the Nix store. This ensures that we can create hard
links to the inputs.
This commit is contained in:
parent
0008b0006d
commit
92cb7c4dfe
2 changed files with 14 additions and 2 deletions
|
|
@ -565,6 +565,11 @@ static bool isLive(const Path & path, const PathSet & livePaths,
|
|||
if (hasSuffix(path, ".lock") && tempRoots.find(string(path, 0, path.size() - 5)) != tempRoots.end())
|
||||
return true;
|
||||
|
||||
/* Don't delete .chroot directories for derivations that are
|
||||
currently being built. */
|
||||
if (hasSuffix(path, ".chroot") && tempRoots.find(string(path, 0, path.size() - 7)) != tempRoots.end())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue