mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +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:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user