git://git.onelab.eu
/
lxc-userspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2741216
)
explicitly chdir to slice's homedir since bash does not seem to be willing to do...
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 2 Jul 2013 14:45:24 +0000
(16:45 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 2 Jul 2013 14:45:24 +0000
(16:45 +0200)
lxcsu-internal
patch
|
blob
|
history
diff --git
a/lxcsu-internal
b/lxcsu-internal
index
638fbdf
..
b5650d7
100755
(executable)
--- 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: