[lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot
Serge Hallyn
serge.hallyn at canonical.com
Wed Sep 19 15:42:23 UTC 2012
Quoting Stéphane Graber (stgraber at ubuntu.com):
> On 12-09-19 10:12 AM, Christian Seiler wrote:
> > Hi,
> >
> >>> - is now in /run instead of /dev
> >>
> >> I don't think that part's going to work... Most distros mount /run as
> >> tmpfs at boot time which will hide anything you're putting in there
> >> before boot.
> >
> > Hmmm, that is indeed a problem... Do you have any suggestions? Or
> > should we just keep it in /dev for now (path is configurable anyway)
> > and worry about this later?
> >
> > Christian
>
> I think /dev is the safest at the moment. Arguably it's wrong as it's
> not an actual device node, but it's the only directory that lxc already
> requires all distros not to mess with (or we wouldn't have working
> console, tty, ...).
What are some other alternatives?
We could use some sysvipc mechanism - just have the container share
the ipcns with the monitor.
We could create a directory (default /container, specifiable in
the container config) where such communication files will be
mounted. Let the per-distro templates set up the location and
the distro-userspace to work together.
Others?
-serge
More information about the lxc-devel
mailing list