Merge pull request #464 from tianon/patch-1
- Runtime: adapt cgroup capability detection to work on Gentoo
This commit is contained in:
commit
cff26b3a6c
1 changed files with 1 additions and 1 deletions
2
utils.go
2
utils.go
|
@ -442,7 +442,7 @@ func FindCgroupMountpoint(cgroupType string) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
reg := regexp.MustCompile(`^cgroup on (.*) type cgroup \(.*` + cgroupType + `[,\)]`)
|
||||
reg := regexp.MustCompile(`^.* on (.*) type cgroup \(.*` + cgroupType + `[,\)]`)
|
||||
for _, line := range strings.Split(string(output), "\n") {
|
||||
r := reg.FindStringSubmatch(line)
|
||||
if len(r) == 2 {
|
||||
|
|
Loading…
Add table
Reference in a new issue