On Fri, 2013-11-15 at 13:02 +0000, John wrote: 
> On 15/11/13 12:21, brian mullan wrote:
> > John...
> >
> > Thanks for you note also..  I'd seen a very similar Bash script for 
> > Arch Linux here:
> >
> > http://pastebin.com/zZEAk3Ny
> >
> > while researching all of this.
> >
> > Brian
> >
> >
> Ah-ha, yes that pastebin is mine. That paste pre-dates systemd. I think 
> the current implementation using the autodev hook is much cleaner. I 
> used to have a separate script called "make_sound_devices" that was 
> called on the host after boot to write devs to the containers that used 
> alsa. This was needed because the device nodes appeared to change on 
> every boot.

Yes.  This was a point hammered on multiple times by Greg K-H at
LinuxPlumbers.  Device notes are potentially volatile over reboot and
should not be replied on.  That's what devtmpfs and udev are intended to
deal with.

> Before systemd it was possible to write a container /dev 
> from the host.

That may, hopefully, become possible again.  I have patches in front on
Serge and Stéphane which should make this and a few other facilities
available to us once again by providing hooks from the container /dev
into a subdirectory of the host /dev at /dev/.lxc/${CONTAINER} (actually
a hashed unique name) with some symlinks pointing into it from the
container configuration areas.  I'm waiting to hear feedback on my
latest proposal.

> The autodev hook does exactly the same thing but is 
> automated per-container during container startup. Good find though :)

Yes, we want to be able to do this at container startup.  Ultimately,
this should provide some semblance of udev capability from the host into
the container, but that's further off.

Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 978-7061 |  m...@wittsend.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to