From: Zack Cerza Date: Thu, 21 Aug 2025 16:40:02 +0000 (-0600) Subject: setup_container_runtime.sh: Always enable linger X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6d90808fd38a7366ed6be29419914852fb9f688c;p=ceph-build.git setup_container_runtime.sh: Always enable linger Signed-off-by: Zack Cerza --- diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 9b4184d6..563f64cf 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -1,10 +1,8 @@ #!/bin/bash -ex # vim: ts=4 sw=4 expandtab function setup_container_runtime () { + loginctl enable-linger "$(id -nu)" if command -v podman; then - if ! [ -d "/run/user/$(id -u)" ] && [ -w "/run/user/$(id -u)" ]; then - sudo loginctl enable-linger "$(id -nu)" - fi 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"