explicitly chdir to slice's homedir since bash does not seem to be willing to do...
[lxc-userspace.git] / 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: