X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sliver_lxc.py;h=6e2b725cd9ce31b555ba5df10438071a9d5fb0ce;hb=43aefb0b76acd21e5f9146fabe511c2444b31518;hp=a2b3432d5a8523d74ef11cedc4b143ea3dff352f;hpb=de028e3fbca6a016b4d066b8a235a1aeb8ece95d;p=nodemanager.git diff --git a/sliver_lxc.py b/sliver_lxc.py index a2b3432..6e2b725 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -53,6 +53,11 @@ class Sliver_LXC(lv.Sliver_Libvirt): command = ['chmod', '755', containerDir] logger.log_call(command, timeout=15*60) + # customize prompt for slice owner + dot_profile=os.path.join(containerDir,"root/.profile") + with open(dot_profile,'w') as f: + f.write("export PS1='%s@\H \$ '\n"%(name)) + # TODO: set quotas... # Set hostname. A valid hostname cannot have '_'