mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
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 (!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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user