From af32c0ebf292e1c8ddf85b88eb6fcbdf5fe75f2b Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 10 Mar 2025 12:19:36 -0600 Subject: [PATCH] ceph-dev-new-setup: Only use podman if >= v4 Signed-off-by: Zack Cerza --- ceph-dev-new-setup/build/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceph-dev-new-setup/build/build b/ceph-dev-new-setup/build/build index 0171f625..04822201 100644 --- a/ceph-dev-new-setup/build/build +++ b/ceph-dev-new-setup/build/build @@ -103,7 +103,8 @@ echo current version $cephver srcdir=`pwd` -if command -v podman; then +PODMAN_MAJOR_VERSION=$(podman version -f json | jq -r '.Client.Version|split(".")[0]') +if command -v podman && [ "$PODMAN_MAJOR_VERSION" -ge 4 ]; then PODMAN=podman PODMAN_STORAGE_DIR="$HOME/.local/share/containers/storage/" test -d $PODMAN_STORAGE_DIR && sudo chgrp -R $(groups | cut -d' ' -f1) $PODMAN_STORAGE_DIR -- 2.39.5