We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12b3e9 commit 06bc277Copy full SHA for 06bc277
libpod/util_linux.go
@@ -21,13 +21,7 @@ import (
21
)
22
23
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
- }
+ fullPath := filepath.Join("/sys/fs/cgroup", path)
31
return fileutils.Exists(fullPath) == nil
32
}
33
0 commit comments