From: David Galloway Date: Sat, 23 Aug 2025 17:40:01 +0000 (-0400) Subject: setup_cont_runtime: Move podman debugging info inside command -v X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5b46e9d113470845680f7072453389c3cf06c1b0;p=ceph-build.git setup_cont_runtime: Move podman debugging info inside command -v Fails jobs if podman is not installed already Signed-off-by: David Galloway --- diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 4d1e0e95..a62a53db 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -2,8 +2,8 @@ # 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 system info > /dev/null || podman system reset --force PODMAN_MAJOR_VERSION=$(podman version -f json | jq -r '.Client.Version|split(".")[0]') if [ "$PODMAN_MAJOR_VERSION" -lt 4 ]; then echo "Found a very old podman; removing"