From: Thierry Parmentelat Date: Tue, 2 Jul 2013 14:45:24 +0000 (+0200) Subject: explicitly chdir to slice's homedir since bash does not seem to be willing to do... X-Git-Tag: lxc-userspace-1.0-5~1 X-Git-Url: http://git.onelab.eu/?p=lxc-userspace.git;a=commitdiff_plain;h=e089948992a8feff3f15719708e21e40b514acf8 explicitly chdir to slice's homedir since bash does not seem to be willing to do so even though it's started with --login... --- diff --git a/lxcsu-internal b/lxcsu-internal index 638fbdf..b5650d7 100755 --- a/lxcsu-internal +++ b/lxcsu-internal @@ -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: