From 06bc277ad852862f333e630ea83b6f18b4070ae0 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 5 Nov 2025 09:21:20 -0500 Subject: [PATCH] libpod/util_linux.go: Remove Cgroups v1 Signed-off-by: Lokesh Mandvekar --- libpod/util_linux.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libpod/util_linux.go b/libpod/util_linux.go index a6f4d1e7bf..f264d79695 100644 --- a/libpod/util_linux.go +++ b/libpod/util_linux.go @@ -21,13 +21,7 @@ import ( ) func cgroupExist(path string) bool { - cgroupv2, _ := cgroups.IsCgroup2UnifiedMode() - var fullPath string - if cgroupv2 { - fullPath = filepath.Join("/sys/fs/cgroup", path) - } else { - fullPath = filepath.Join("/sys/fs/cgroup/memory", path) - } + fullPath := filepath.Join("/sys/fs/cgroup", path) return fileutils.Exists(fullPath) == nil }