Skip to content

Commit 06bc277

Browse files
committed
libpod/util_linux.go: Remove Cgroups v1
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent a12b3e9 commit 06bc277

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

libpod/util_linux.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ import (
2121
)
2222

2323
func cgroupExist(path string) bool {
24-
cgroupv2, _ := cgroups.IsCgroup2UnifiedMode()
25-
var fullPath string
26-
if cgroupv2 {
27-
fullPath = filepath.Join("/sys/fs/cgroup", path)
28-
} else {
29-
fullPath = filepath.Join("/sys/fs/cgroup/memory", path)
30-
}
24+
fullPath := filepath.Join("/sys/fs/cgroup", path)
3125
return fileutils.Exists(fullPath) == nil
3226
}
3327

0 commit comments

Comments
 (0)