[lxc-users] How do you mount this file as an lxc rootfs?

John Lewis oflameo2 at gmail.com
Sat Jun 25 19:20:08 UTC 2016


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
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

Is the pre-start and pre-mount hooks the standard way of mounting a lxc
root filesystem, 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?



More information about the lxc-users mailing list