mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	cgroups: Fix run_into method
The current run_into method attempts to execute: <...>/shutils CGMOUNT=<...> cgroups_run_into <...> Which should instead be: CGMOUNT=<...> <...>/shutils cgroups_run_into <...> So just use cgroups_run_into_cmd to generate the command, then execute that.
This commit is contained in:
		@@ -392,11 +392,8 @@ class CgroupsModule(Module):
 | 
			
		||||
        :param cgroup: Name of cgroup to run command into
 | 
			
		||||
        :returns: Output of command.
 | 
			
		||||
        """
 | 
			
		||||
        return self.target._execute_util(
 | 
			
		||||
            'CGMOUNT={} cgroups_run_into {} {}'\
 | 
			
		||||
                .format(self.cgroup_root, cgroup, cmdline),
 | 
			
		||||
            as_root=True)
 | 
			
		||||
 | 
			
		||||
        cmd = self.run_into_cmd(cgroup, cmdline)
 | 
			
		||||
        return self.target.execute(cmd)
 | 
			
		||||
 | 
			
		||||
    def cgroups_tasks_move(self, srcg, dstg, exclude=''):
 | 
			
		||||
        """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user