[lxc-users] cloning could be improved

Serge Hallyn serge.hallyn at ubuntu.com
Fri May 16 10:54:57 UTC 2014


Quoting CDR (venefax at gmail.com):
> The cloning app should intelligently change the mount points to match
> the new container's directory.
> For example, this is the original mount
> lxc.mount.entry = /usr/src /var/lib/lxc/container-35/rootfs/usr/src
> none bind 0 0

The config entry should be:

lxc.mount.entry = /usr/src usr/src none bind 0 0

which will always mount on /usr/src in the container.  I see that the
lxc.container.conf manpage still doesn't describe that the right way.
That should be fixed.

> if I clone  "container-35", to "container-36", the clone should have a
> mount like this
> lxc.mount.entry = /usr/src /var/lib/lxc/container-36/rootfs/usr/src
> none bind 0 0
> 
> instead, now I have to manually fix the mounts. This is unnecessary
> because the mounts will only work after the adjustment.
> 
> 
> Philip
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list