1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

cgroups: ensure CGroups are mounted RW

Some systems mount CGroups RO, thus we need to ensure we remount that
FS as root otherwise we cannot create new groups.

Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
Patrick Bellasi 2016-10-28 18:54:10 +01:00
parent a89c3fb009
commit da128f917b

View File

@ -326,6 +326,11 @@ class CgroupsModule(Module):
self.logger.debug('cgroup_root already mounted at %s', self.logger.debug('cgroup_root already mounted at %s',
self.cgroup_root) self.cgroup_root)
# Ensure CGroups is mounted RW
self.target.execute('mount -o remount,rw {}'\
.format(self.cgroup_root),
as_root=True)
# Load list of available controllers # Load list of available controllers
controllers = [] controllers = []
subsys = self.list_subsystems() subsys = self.list_subsystems()