libstore/build: upgrade the sandbox-fallback message to a warning

Disabling build sandboxing is a significant change to build isolation. If this
is done automatically due to namespacing issues (and sandbox-fallback not being
disabled), show the user a loud warning without the need to opt into a lot of
other log spam.

Change-Id: I52daccdd6934873234223c798ca3dcff6a6a6964
This commit is contained in:
Alois Wohlschlager
2025-12-01 14:25:47 +00:00
committed by alois31
parent 1bfbbe2415
commit b4e2abdf5c
+1 -1
View File
@@ -263,7 +263,7 @@ retry:
if (!mountAndPidNamespacesSupported()) {
if (!settings.sandboxFallback)
throw Error("this system does not support the kernel namespaces that are required for sandboxing; use '--no-sandbox' to disable sandboxing. Pass --debug for diagnostics on what is broken.");
debug("auto-disabling sandboxing because the prerequisite namespaces are not available");
printTaggedWarning("auto-disabling sandboxing because the prerequisite namespaces are not available");
useChroot = false;
}