mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
* Delete the chroot if it already exists (e.g. left over from an
interrupted build).
This commit is contained in:
parent
92cb7c4dfe
commit
6f6bb1fdea
1 changed files with 1 additions and 0 deletions
|
@ -1678,6 +1678,7 @@ void DerivationGoal::startBuilder()
|
|||
to ensure that we can create hard-links to non-directory
|
||||
inputs in the fake Nix store in the chroot (see below). */
|
||||
chrootRootDir = drvPath + ".chroot";
|
||||
if (pathExists(chrootRootDir)) deletePath(chrootRootDir);
|
||||
|
||||
/* Clean up the chroot directory automatically. */
|
||||
autoDelChroot = boost::shared_ptr<AutoDelete>(new AutoDelete(chrootRootDir));
|
||||
|
|
Loading…
Reference in a new issue