From: Zack Cerza Date: Wed, 10 Sep 2025 23:11:19 +0000 (-0600) Subject: setup_container_runtime.sh: Add tmpfiles config X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1148b2e83423d873bf3de8f466971464137359be;p=ceph-build.git 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 --- diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 14087eed..4b069bac 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"