]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
setup_cont_runtime: Move podman debugging info inside command -v 2434/head
authorDavid Galloway <david.galloway@ibm.com>
Sat, 23 Aug 2025 17:40:01 +0000 (13:40 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Sat, 23 Aug 2025 17:40:01 +0000 (13:40 -0400)
Fails jobs if podman is not installed already

Signed-off-by: David Galloway <david.galloway@ibm.com>
scripts/setup_container_runtime.sh

index 4d1e0e9562c03b5e116bb99c35243a032ea65c58..a62a53db162f1415f07e800e059b01271d508a16 100755 (executable)
@@ -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"