libpod/util_linux.go: Remove Cgroups v1

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
Lokesh Mandvekar
2025-11-05 09:21:20 -05:00
parent a12b3e97d2
commit 06bc277ad8

View File

@@ -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
}