ARM-software / devlib

Library for interaction with and instrumentation of remote devices.
Apache License 2.0
47 stars 78 forks source link

module/cgroups: Skip disabled cgroup controllers #600

Closed mrkajetanp closed 2 years ago

mrkajetanp commented 2 years ago

Currently the cgroups module will pull all available controllers from /proc/cgroups and then try to mount them, including the disabled ones. This will result in the entire mount failing.

Lines in /proc/cgroups ending in 0 correspond to disabled controllers. Filtering those out solves the issue.