[lxc-devel] call to setup_dev_symlinks with lxc.autodev

Serge Hallyn serge.hallyn at ubuntu.com
Thu Apr 17 13:59:43 UTC 2014


Quoting William Dauchy (wdauchy at gmail.com):
> On Wed, Apr 16, 2014 at 9:15 PM, Michael H. Warfield <mhw at wittsend.com> wrote:
> > On Mon, 2014-04-14 at 15:18 +0200, William Dauchy wrote:
> >> but in my case I need to manually access the /dev directory in order
> >> to make it return EEXIST.
> >
> > I don't understand this statement.  What are you doing "in order to make
> > it return EEXIST?"  Create the symlinks?  In your previous message, you
> > said the 4 symlinks already exist.  Ok...  Then what does this "I need
> > to manually access the /dev directory" mean?  What are you doing when
> > you do?
> 
> I was also quoting the code which is calling the `symlink` function
> and should return EEXIST in order to not fail. The thing is I need to
> access the directory /dev before starting (see lxc.hook.mount in my
> config) to make the `symlink` function return EEXIST. That's a
> workaround to make my container start.

So doing an 'ls' fills those in?  That's what I don't understand here,
why would ls create those?

And simply creating the symlinks on the backing store ahead of time is
not an option?

> I also don't understand what is so difficult to get: it does not make
> sense to have options to enable/disable creations of stuff in /dev
> (kmsg/autodev), but not for these four links. That's what I need.

Ok, I'm fine taking a patch to make those four links depend on autodev.


More information about the lxc-devel mailing list