Skip to content

Commit 6f43a66

Browse files
committed
cmd/podman/system/service_abi_linux.go: Remove Cgroups v1
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 5d7358d commit 6f43a66

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/podman/system/service_abi_linux.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package system
44

55
import (
6-
"github.com/containers/podman/v6/pkg/rootless"
76
"github.com/sirupsen/logrus"
87
"go.podman.io/common/pkg/cgroups"
98
"go.podman.io/common/pkg/servicereaper"
@@ -15,11 +14,6 @@ func maybeStartServiceReaper() {
1514
}
1615

1716
func maybeMoveToSubCgroup() {
18-
cgroupv2, _ := cgroups.IsCgroup2UnifiedMode()
19-
if rootless.IsRootless() && !cgroupv2 {
20-
logrus.Warnf("Running 'system service' in rootless mode without cgroup v2, containers won't survive a 'system service' restart")
21-
}
22-
2317
if err := cgroups.MaybeMoveToSubCgroup(); err != nil {
2418
// it is a best effort operation, so just print the
2519
// error for debugging purposes.

0 commit comments

Comments
 (0)