From 0d82094807a3e56570c41993a4749779acf7d6f6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 26 Jul 2011 13:34:00 +0100 Subject: [PATCH] adt-virt-schroot: actually become root on testbed if root-on-testbed --- virt-subproc/adt-virt-schroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virt-subproc/adt-virt-schroot b/virt-subproc/adt-virt-schroot index 32bd783..b75f59d 100755 --- a/virt-subproc/adt-virt-schroot +++ b/virt-subproc/adt-virt-schroot @@ -80,7 +80,9 @@ def parse_args(): def hook_open(): global schroot, sessid, downtmp sessid = vsp.execute('schroot -b -c',[schroot], downp=False, outp=True) - vsp.down = ['schroot','-r','-c',sessid,'--','sh','-c'] + vsp.down = ['schroot','-r','-c',sessid] + if 'root-on-testbed' in capabilities: vsp.down += ['-u','root'] + vsp.down += ['--','sh','-c'] return None def hook_cleanup(): -- 2.30.2