From 6f43a666292f9a53f4c0bb28e6e99f44a992c715 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 5 Nov 2025 09:31:49 -0500 Subject: [PATCH] cmd/podman/system/service_abi_linux.go: Remove Cgroups v1 Signed-off-by: Lokesh Mandvekar --- cmd/podman/system/service_abi_linux.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/podman/system/service_abi_linux.go b/cmd/podman/system/service_abi_linux.go index 5532143f12..6282efc207 100644 --- a/cmd/podman/system/service_abi_linux.go +++ b/cmd/podman/system/service_abi_linux.go @@ -3,7 +3,6 @@ package system import ( - "github.com/containers/podman/v6/pkg/rootless" "github.com/sirupsen/logrus" "go.podman.io/common/pkg/cgroups" "go.podman.io/common/pkg/servicereaper" @@ -15,11 +14,6 @@ func maybeStartServiceReaper() { } func maybeMoveToSubCgroup() { - cgroupv2, _ := cgroups.IsCgroup2UnifiedMode() - if rootless.IsRootless() && !cgroupv2 { - logrus.Warnf("Running 'system service' in rootless mode without cgroup v2, containers won't survive a 'system service' restart") - } - if err := cgroups.MaybeMoveToSubCgroup(); err != nil { // it is a best effort operation, so just print the // error for debugging purposes.