Browse code

Merge pull request #464 from tianon/patch-1

- Runtime: adapt cgroup capability detection to work on Gentoo

Solomon Hykes authored on 2013/04/23 16:36:10
Showing 1 changed files
... ...
@@ -442,7 +442,7 @@ func FindCgroupMountpoint(cgroupType string) (string, error) {
442 442
 		return "", err
443 443
 	}
444 444
 
445
-	reg := regexp.MustCompile(`^cgroup on (.*) type cgroup \(.*` + cgroupType + `[,\)]`)
445
+	reg := regexp.MustCompile(`^.* on (.*) type cgroup \(.*` + cgroupType + `[,\)]`)
446 446
 	for _, line := range strings.Split(string(output), "\n") {
447 447
 		r := reg.FindStringSubmatch(line)
448 448
 		if len(r) == 2 {