aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-02-07 22:59:46 +0100
committerEelco Dolstra <edolstra@gmail.com>2023-02-07 22:59:46 +0100
commitc5c0617d6fe6810c35ec56d3116ef523f3f38904 (patch)
tree6f591fd15d2dfc5cd93fdc4e028a7c2519418ea3 /src
parent4e61877b5c64096fa3ea63bf5ead7e17e1ddef66 (diff)
Mention --no-sandbox if sandboxing is unsupported
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build/local-derivation-goal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index a99da0b5f..e1cc504f8 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -211,7 +211,7 @@ void LocalDerivationGoal::tryLocalBuild()
if (useChroot) {
if (!mountNamespacesSupported() || !pidNamespacesSupported()) {
if (!settings.sandboxFallback)
- throw Error("this system does not support the kernel namespaces that are required for sandboxing");
+ throw Error("this system does not support the kernel namespaces that are required for sandboxing; use '--no-sandbox' to disable sandboxing");
debug("auto-disabling sandboxing because the prerequisite namespaces are not available");
useChroot = false;
}