mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
daemon: Show the chroot contents upon `--debug'.
* nix/nix-daemon/guix-daemon.cc (main)[HAVE_CHROOT]: Display the contents of `settings.dirsInChroot' at `lvlDebug'.
This commit is contained in:
parent
60a290926b
commit
706d0641cf
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue