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:
parent
a89c3fb009
commit
da128f917b
@ -326,6 +326,11 @@ class CgroupsModule(Module):
|
||||
self.logger.debug('cgroup_root already mounted at %s',
|
||||
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
|
||||
controllers = []
|
||||
subsys = self.list_subsystems()
|
||||
|
Loading…
x
Reference in New Issue
Block a user