From 1148b2e83423d873bf3de8f466971464137359be Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 10 Sep 2025 17:11:19 -0600 Subject: [PATCH] setup_container_runtime.sh: Add tmpfiles config This should resolve podman failures that mention "current system boot ID differs from cached boot ID". Signed-off-by: Zack Cerza --- scripts/setup_container_runtime.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 14087eedd..4b069bac1 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -26,6 +26,13 @@ function setup_container_runtime () { fi if command -v podman; then + if [ "$(podman version -f "{{ lt .Client.Version \"5.6.1\" }}")" = "true" ] && \ + ! echo "928238bfcdc79a26ceb51d7d9759f99144846c0a /etc/tmpfiles.d/podman.conf" | sha1sum --status --check -; then + # Pull in this fix: https://github.com/containers/podman/pull/26986 + curl -sS -L -O https://github.com/containers/podman/raw/refs/tags/v5.6.1/contrib/tmpfile/podman.conf + sudo mv podman.conf /etc/tmpfiles.d/ + sudo systemd-tmpfiles --remove + fi if [ "$(podman version -f "{{ ge .Client.Version \"4\" }}")" = "true" ]; then PODMAN_DIR="$HOME/.local/share/containers" test -d "$PODMAN_DIR" && command -v restorecon && sudo restorecon -R -T0 -x "$PODMAN_DIR" -- 2.47.3