From: Zack Cerza Date: Thu, 21 Aug 2025 19:26:29 +0000 (-0600) Subject: setup_container_runtime.sh: Reset podman X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c3fe7d6d29f0887cb6ce43094e9171b01405e0af;p=ceph-build.git setup_container_runtime.sh: Reset podman ... if `podman system info` fails. Signed-off-by: Zack Cerza --- diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 563f64cf..4d1e0e95 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -2,6 +2,7 @@ # vim: ts=4 sw=4 expandtab function setup_container_runtime () { loginctl enable-linger "$(id -nu)" + podman system info > /dev/null || podman system reset --force if command -v podman; then PODMAN_MAJOR_VERSION=$(podman version -f json | jq -r '.Client.Version|split(".")[0]') if [ "$PODMAN_MAJOR_VERSION" -lt 4 ]; then