From faa551a9219aa73d16058107631a697adbc90bb8 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 5 Nov 2025 09:18:12 -0500 Subject: [PATCH] libpod/runtime_ctr.go: Remove Cgroups v1 Signed-off-by: Lokesh Mandvekar --- libpod/runtime_ctr.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go index 3f0c0958a7..65c8b832ac 100644 --- a/libpod/runtime_ctr.go +++ b/libpod/runtime_ctr.go @@ -28,7 +28,6 @@ import ( "github.com/opencontainers/runtime-tools/generate" "github.com/sirupsen/logrus" "go.podman.io/common/libnetwork/types" - "go.podman.io/common/pkg/cgroups" "go.podman.io/common/pkg/config" "go.podman.io/storage" "go.podman.io/storage/pkg/stringid" @@ -861,18 +860,6 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, opts ctrRmO } if c.state.State == define.ContainerStatePaused { - isV2, err := cgroups.IsCgroup2UnifiedMode() - if err != nil { - retErr = err - return removedCtrs, removedPods, retErr - } - // cgroups v1 and v2 handle signals on paused processes differently - if !isV2 { - if err := c.unpause(); err != nil { - retErr = err - return removedCtrs, removedPods, retErr - } - } if err := c.ociRuntime.KillContainer(c, 9, false); err != nil { retErr = err return removedCtrs, removedPods, retErr