Mention --no-sandbox if sandboxing is unsupported

This commit is contained in:
Eelco Dolstra 2023-02-07 22:59:46 +01:00
parent 4e61877b5c
commit c5c0617d6f

View file

@ -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;
}