On 27 March 2012 15:08, Serge Hallyn <serge.hal...@canonical.com> wrote:

> Another option would be to copy an upstart or sysvinit script into
> /var/lib/lxc/$host/root/etc/init{,.d}/ which does your bootstrapping
> and removes itself when done.  Then just lxc-start the container.
>



On 27 March 2012 15:24, Jäkel, Guido <g.jae...@dnb.de> wrote:

> if it's the common way you want to setup&bootstrap a new container, maybe
> you can -- as a third way -- inject a (self-deleting?) script  into the
> containers filesystem before the first start.


This sounds sensible, similar to CloudInit[1].  Might be a consideration in
installing/forking as part of the lxc templates?

Peter
[1] https://help.ubuntu.com/community/CloudInit

-- 
Peter Gillard-Moss
Developer | ThoughtWorks Studios | Technical Solutions
http://www.thoughtworks-studios.com
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to