From 1c275d87d2eb55825d57faa80a93c83c9c586b5c Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Mon, 24 Aug 2026 05:39:11 +0200 Subject: [PATCH] build.sh: carry FP6IMG_NO_CROSSDIRECT across the su re-exec su scrubs the environment, so the escape hatch from the previous commit never reached the build user (verified: libcamera still built crossdirect and failed identically). Co-Authored-By: Claude Fable 5 --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4dc613b..ca5f03d 100755 --- a/build.sh +++ b/build.sh @@ -72,7 +72,8 @@ if [ "$(id -u)" = 0 ]; then # would poison the next podman invocation's cwd) install -d -o build dist find dist -mindepth 1 -delete - exec su build -c "sh -eu '$PWD/build.sh'" + # su scrubs the environment — carry the knobs that matter across it + exec su build -c "FP6IMG_NO_CROSSDIRECT='${FP6IMG_NO_CROSSDIRECT:-}' sh -eu '$PWD/build.sh'" fi # git hosts occasionally hiccup (our forgejo lives on a small VM that also