From 28430f1b07e85e0ea553d5486be568a2bf372e88 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 11 Nov 2026 16:14:54 +0000 Subject: populate: export TMPDIR Each job and the ssh wrapper run as separate scripts, which only see TMPDIR if it's exported. Without TMPDIR in the caller's environment, jobs fail, and the ssh wrapper's control socket ends up at the root directory. --- pkgs/populate/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix index ec5a49b..221ba6e 100644 --- a/pkgs/populate/default.nix +++ b/pkgs/populate/default.nix @@ -288,6 +288,7 @@ writers.writeDash "populate.${target.host}" '' # Change to a private temporary directory to prevent collisions. TMPDIR=$(${coreutils}/bin/mktemp -dt populate.XXXXXXXX) readonly TMPDIR # Ensure the trap will delete the correct thing. + export TMPDIR # Share it with the jobs and the ssh wrapper. trap 'rm -R "$TMPDIR"' EXIT ${check { inherit force target; }} -- cgit v1.3.1