• Rowan Thorpe's avatar
    Fix regression from commit 137e80cd · dccee4e8
    Rowan Thorpe authored
    Problem:
    
    A false-negative in check-config.sh for cgroups v2 systems was fixed but the
    commit introduced a regression based on a small assumption that content of
    /sys/fs/cgroup/cgroup.controllers would have the same format as the content
    of /proc/self/cgroup. It doesn't.
    
    Solution:
    
    This just tweaks the regex to count occurrences of either cgroup
    subsystem-names on each line (as occurs in the sysfs pseudo-file), or those
    names with colons either side (as occurs in the procfs pseudo-file).
    Signed-off-by: 's avatarRowan Thorpe <rowan@rowanthorpe.com>
    dccee4e8
Name
Last commit
Last update
.github Loading commit data...
cmd Loading commit data...
contrib Loading commit data...
e2e Loading commit data...
manifests Loading commit data...
package Loading commit data...
pkg Loading commit data...
scripts Loading commit data...
tests Loading commit data...
vendor Loading commit data...
.dockerignore Loading commit data...
.drone.yml Loading commit data...
.gitignore Loading commit data...
.golangci.json Loading commit data...
BUILDING.md Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DCO Loading commit data...
Dockerfile.dapper Loading commit data...
Dockerfile.manifest Loading commit data...
Dockerfile.test.dapper Loading commit data...
Dockerfile.test.mod.dapper Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
ROADMAP.md Loading commit data...
Vagrantfile Loading commit data...
channel.yaml Loading commit data...
docker-compose.yml Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
install.sh Loading commit data...
k3s-rootless.service Loading commit data...
k3s.service Loading commit data...
main.go Loading commit data...
vendor.go Loading commit data...