aboutsummaryrefslogtreecommitdiff
path: root/nix/nix-daemon
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-01-02 18:31:40 +0100
committerLudovic Courtès <ludo@gnu.org>2013-01-02 18:31:40 +0100
commit706d0641cfede33c70edaee5be49251388b8a000 (patch)
treebb1388ca6ac71e8fa9afd24f8d3de3456f602565 /nix/nix-daemon
parent60a290926b23f81427b17bc525b30cd1fc9e6508 (diff)
downloadguix-706d0641cfede33c70edaee5be49251388b8a000.tar
guix-706d0641cfede33c70edaee5be49251388b8a000.tar.gz
daemon: Show the chroot contents upon `--debug'.
* nix/nix-daemon/guix-daemon.cc (main)[HAVE_CHROOT]: Display the contents of `settings.dirsInChroot' at `lvlDebug'.
Diffstat (limited to 'nix/nix-daemon')
-rw-r--r--nix/nix-daemon/guix-daemon.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc
index 823eeb674e..e032d79a2b 100644
--- a/nix/nix-daemon/guix-daemon.cc
+++ b/nix/nix-daemon/guix-daemon.cc
@@ -196,6 +196,17 @@ main (int argc, char *argv[])
fprintf (stderr, "warning: running as root is highly recommended, "
"unless `--build-users-group' is used\n");
+#ifdef HAVE_CHROOT
+ if (settings.useChroot)
+ {
+ foreach (PathSet::iterator, i, settings.dirsInChroot)
+ {
+ printMsg (lvlDebug,
+ format ("directory `%1%' added to the chroot") % *i);
+ }
+ }
+#endif
+
run (nothing);
}
catch (std::exception &e)