Do not skip check for cgroup creation in the systemd mount

This commit is contained in:
Buddha Prakash 2016-07-10 20:41:53 -07:00
parent 710374b65f
commit 238f833f65

View File

@ -54,10 +54,8 @@ func (m *cgroupManagerImpl) Exists(name string) bool {
}
// If even one cgroup doesn't exist we go on to create it
// @TODO(dubstack) We skip check for systemd until we update
// libcontainer in vendor
for key, path := range cgroupPaths {
if key != "systemd" && !libcontainercgroups.PathExists(path) {
for _, path := range cgroupPaths {
if !libcontainercgroups.PathExists(path) {
return false
}
}