On Sat, Jun 25, 2016 at 03:20:08PM -0400, John Lewis wrote:
> On 06/20/2016 11:51 AM, Serge E. Hallyn wrote:
> > The pre-mount hook runs in the container's mount namespace but before
> > mounting the rootfs.  So the fs you mount only shows up in the container's
> > namespace, not on the host.  Auto-cleanup is just a nice bonus.  I would
> > have been not entirely surprised if the loopdev remained attached, happy
> > to see it apparently gets cleaned up.
> >
> > _______________________________________________
> > lxc-users mailing list
> > [email protected]
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> 
> Is the pre-start and pre-mount hooks the standard way of mounting a lxc
> root filesystem,

No.  But iirc you're not using it to mount the rootfs, but to mount  the
thing which contains the rootfs.

>  or was there some way to do it via the configuration
> file. If there is no standard way using the config file, has anyone
> developed a hook script that uses the configuration file as a directive
> for the mounts?
> 
> _______________________________________________
> lxc-users mailing list
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to