From 215505bb46503b083fd64dd9a65e7b79d6eadf21 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 13 Jan 2007 17:54:01 +0000 Subject: * Removed chroot support. --- src/libmain/shared.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/libmain') 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)); -- cgit v1.2.3