about summary refs log tree commit diff
path: root/src/nix/run.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-20T16·59+0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-20T16·59+0100
commit4eb9e20028c4e52c23ce6a53fe02cac87171fda6 (patch)
tree8ee105dc04822c0f11737e4b118eb0691f5e983a /src/nix/run.cc
parenta3aa850f0f71644ac4559f958e180c3e543c74e9 (diff)
nix run: Fix accidental removal of /nix/store existence check
Parenthetical to #1686, we don't need to create a new root if we can
just bind-mount on top of the existing /nix/store.
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r--src/nix/run.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index 11acbc3db6..66f416efce 100644
--- a/src/nix/run.cc
+++ b/src/nix/run.cc
@@ -184,7 +184,7 @@ void chrootHelper(int argc, char * * argv)
        but that doesn't work in a user namespace yet (Ubuntu has a
        patch for this:
        https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1478578). */
-    if (true /* !pathExists(storeDir) */) {
+    if (!pathExists(storeDir)) {
         // FIXME: Use overlayfs?
 
         Path tmpDir = createTempDir();