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 }