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

John Lewis oflameo2 at gmail.com
Sun Jun 26 01:43:48 UTC 2016


On 06/25/2016 06:38 PM, Serge E. Hallyn wrote:
> 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
>>> 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,
> No.  But iirc you're not using it to mount the rootfs, but to mount  the
> thing which contains the rootfs.
>

Would making the rootfs the root of the filesystem image potentially
give me more options for how I mount it?


More information about the lxc-users mailing list