Bump cgroups to dbea6f2bd41658b84b00417ceefa416b97
This fixes issues for systemd 420 and non-existant cgroups. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
5
vendor/github.com/containerd/cgroups/paths.go
generated
vendored
5
vendor/github.com/containerd/cgroups/paths.go
generated
vendored
@@ -57,6 +57,9 @@ func PidPath(pid int) Path {
|
||||
return existingPath(paths, "")
|
||||
}
|
||||
|
||||
// ErrControllerNotActive is returned when a controller is not supported or enabled
|
||||
var ErrControllerNotActive = errors.New("controller is not supported")
|
||||
|
||||
func existingPath(paths map[string]string, suffix string) Path {
|
||||
// localize the paths based on the root mount dest for nested cgroups
|
||||
for n, p := range paths {
|
||||
@@ -77,7 +80,7 @@ func existingPath(paths map[string]string, suffix string) Path {
|
||||
root, ok := paths[string(name)]
|
||||
if !ok {
|
||||
if root, ok = paths[fmt.Sprintf("name=%s", name)]; !ok {
|
||||
return "", fmt.Errorf("unable to find %q in controller set", name)
|
||||
return "", ErrControllerNotActive
|
||||
}
|
||||
}
|
||||
if suffix != "" {
|
||||
|
||||
Reference in New Issue
Block a user