about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13T17·54+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13T17·54+0000
commit215505bb46503b083fd64dd9a65e7b79d6eadf21 (patch)
tree022a0fa8297bdd263033eff83b95c4d5cf84ff7e /src
parentf23dcdd60330c3b2f83b5b4278e38c245c397468 (diff)
* Removed chroot support.
Diffstat (limited to 'src')
-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));