]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
setup_container_runtime.sh: Reset podman 2430/head
authorZack Cerza <zack@cerza.org>
Thu, 21 Aug 2025 19:26:29 +0000 (13:26 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 21 Aug 2025 19:51:05 +0000 (13:51 -0600)
... if `podman system info` fails.

Signed-off-by: Zack Cerza <zack@cerza.org>
scripts/setup_container_runtime.sh

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