From fa9d7a17b3cac620cfc1af60faf267a1f67312bc Mon Sep 17 00:00:00 2001 From: Sascha Bischoff Date: Wed, 8 Nov 2017 08:44:58 +0000 Subject: [PATCH] gem5: Mount the VirtIO device as_root This was failing in some instances as it was not being executed as root. Hence we now set as_root. --- devlib/utils/ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devlib/utils/ssh.py b/devlib/utils/ssh.py index 08fa0fd..5f9ed0b 100644 --- a/devlib/utils/ssh.py +++ b/devlib/utils/ssh.py @@ -757,9 +757,9 @@ class Gem5Connection(TelnetConnection): """ gem5_logger.info("Mounting VirtIO device in simulated system") - self._gem5_shell('su -c "mkdir -p {}" root'.format(self.gem5_input_dir)) + self._gem5_shell('mkdir -p {}'.format(self.gem5_input_dir), as_root=True) mount_command = "mount -t 9p -o trans=virtio,version=9p2000.L,aname={} gem5 {}".format(self.gem5_interact_dir, self.gem5_input_dir) - self._gem5_shell(mount_command) + self._gem5_shell(mount_command, as_root=True) def _move_to_temp_dir(self, source): """