Mention --no-sandbox if sandboxing is unsupported
This commit is contained in:
parent
4e61877b5c
commit
c5c0617d6f
|
@ -211,7 +211,7 @@ void LocalDerivationGoal::tryLocalBuild()
|
||||||
if (useChroot) {
|
if (useChroot) {
|
||||||
if (!mountNamespacesSupported() || !pidNamespacesSupported()) {
|
if (!mountNamespacesSupported() || !pidNamespacesSupported()) {
|
||||||
if (!settings.sandboxFallback)
|
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");
|
debug("auto-disabling sandboxing because the prerequisite namespaces are not available");
|
||||||
useChroot = false;
|
useChroot = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue