mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Do not skip check for cgroup creation in the systemd mount
This commit is contained in:
parent
710374b65f
commit
238f833f65
@ -54,10 +54,8 @@ func (m *cgroupManagerImpl) Exists(name string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If even one cgroup doesn't exist we go on to create it
|
// If even one cgroup doesn't exist we go on to create it
|
||||||
// @TODO(dubstack) We skip check for systemd until we update
|
for _, path := range cgroupPaths {
|
||||||
// libcontainer in vendor
|
if !libcontainercgroups.PathExists(path) {
|
||||||
for key, path := range cgroupPaths {
|
|
||||||
if key != "systemd" && !libcontainercgroups.PathExists(path) {
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user