about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/shared.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index f1a7db40dc91..ca0a6e401084 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -85,12 +85,6 @@ void initDerivationsHelpers();
    processor. */
 static void initAndRun(int argc, char * * argv)
 {
-    string root = getEnv("NIX_ROOT");
-    if (root != "") {
-        if (chroot(root.c_str()) != 0)
-            throw SysError(format("changing root to `%1%'") % root);
-    }
-    
     /* Setup Nix paths. */
     nixStore = canonPath(getEnv("NIX_STORE_DIR", getEnv("NIX_STORE", NIX_STORE_DIR)));
     nixDataDir = canonPath(getEnv("NIX_DATA_DIR", NIX_DATA_DIR));