From ea5b6e5594c0aeb8524fe131eae08dc98e72b72a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Mar 2026 07:49:00 +0000 Subject: [PATCH] Write containers.conf tmp_dir and force env var inline on podman call Podman's events engine reads tmp_dir from containers.conf, not from XDG_RUNTIME_DIR directly. Write both storage.conf and containers.conf to /tmp/podman- so no path under /run/user/ is ever used. Also use `env XDG_RUNTIME_DIR=...` prefix on podman invocation to override any stale value in the calling shell environment. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH --- infra/start.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/infra/start.sh b/infra/start.sh index e3e9bcd..ebb468e 100755 --- a/infra/start.sh +++ b/infra/start.sh @@ -68,20 +68,29 @@ _HIY_RUNTIME="/tmp/podman-$(id -u)" mkdir -p "$_HIY_RUNTIME" export XDG_RUNTIME_DIR="$_HIY_RUNTIME" -# Also write storage.conf so Podman doesn't read a stale RunRoot from the -# user's existing ~/.config/containers/storage.conf. +# Write storage.conf and containers.conf so Podman doesn't read stale +# RunRoot / tmp_dir values from existing user config files. mkdir -p "$HOME/.config/containers" cat > "$HOME/.config/containers/storage.conf" < "$HOME/.config/containers/containers.conf" <