diff options
| author | tv <tv@krebsco.de> | 2026-11-11 16:14:54 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-11 16:14:54 +0000 |
| commit | 28430f1b07e85e0ea553d5486be568a2bf372e88 (patch) | |
| tree | a7d1a994a02f2269f054c9542847cae1a021ea0d /pkgs/populate/default.nix | |
| parent | 58e653b0102aec7dfb9b0a0b0d159965f2a0ab78 (diff) | |
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.
Diffstat (limited to 'pkgs/populate/default.nix')
| -rw-r--r-- | pkgs/populate/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
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; }} |
