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.
This commit is contained in:
Eelco Dolstra 2017-11-20 17:59:32 +01:00
parent a3aa850f0f
commit 4eb9e20028
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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();