From 6d90808fd38a7366ed6be29419914852fb9f688c Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 21 Aug 2025 10:40:02 -0600 Subject: [PATCH] setup_container_runtime.sh: Always enable linger Signed-off-by: Zack Cerza --- scripts/setup_container_runtime.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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" -- 2.39.5