explicitly chdir to slice's homedir since bash does not seem to be willing to do...
Thierry Parmentelat [Tue, 2 Jul 2013 14:45:24 +0000 (16:45 +0200)]
lxcsu-internal

index 638fbdf..b5650d7 100755 (executable)
@@ -188,6 +188,7 @@ def main ():
         os.environ['SHELL'] = '/bin/sh'
         os.environ['HOME'] = '/home/%s'%slice_name
         os.environ['LD_PRELOAD'] = '/etc/planetlab/lib/bind_public.so'
+        os.chdir("/home/%s"%(slice_name))
         if debug: print 'lxcsu-internal:execv:','/usr/bin/setarch',exec_args
         os.execv('/usr/bin/setarch',exec_args)
     else: