aboutsummaryrefslogtreecommitdiff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13 17:54:01 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13 17:54:01 +0000
commit215505bb46503b083fd64dd9a65e7b79d6eadf21 (patch)
tree022a0fa8297bdd263033eff83b95c4d5cf84ff7e /src/libmain
parentf23dcdd60330c3b2f83b5b4278e38c245c397468 (diff)
* Removed chroot support.
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 f1a7db40d..ca0a6e401 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));