about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-12-11T17·52+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-12-11T17·52+0000
commit652817046b2f999e29de8109fce9c61b5b18d22c (patch)
treeae071f7ffbadc587519b181d2e9b36c1be848f01 /src/libstore/build.cc
parent5a569509b491d43bfcb5c72e85a6d7374a583228 (diff)
* Revert r13150: now that we use private namespaces for the chroot, we
  don't have to put the chroot in /nix/var/nix/chroots anymore.
  They're back in /tmp now.

Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 466e3326d5f8..cbbd3aa39436 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1657,7 +1657,7 @@ void DerivationGoal::startBuilder()
 #if CHROOT_ENABLED
         /* Create a temporary directory in which we set up the chroot
            environment using bind-mounts. */
-        chrootRootDir = createTempDir(nixChrootsDir, "chroot-nix");
+        chrootRootDir = createTempDir("", "nix-chroot");
 
         /* Clean up the chroot directory automatically. */
         autoDelChroot = boost::shared_ptr<AutoDelete>(new AutoDelete(chrootRootDir));