]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
fix mounts not propagating back to root mntns during create and clone
authorDwight Engen <dwight.engen@oracle.com>
Wed, 19 Feb 2014 21:44:19 +0000 (16:44 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 19 Feb 2014 23:52:29 +0000 (18:52 -0500)
commitc597baa8f92e708adda14a95a0ed1bfd6b85c1e6
treec448a273af802f6cd5dfbe3b5d468edb61d13c9d
parentf88bfaa3f862d938e3b1ddfe87e079aa09dfc30a
fix mounts not propagating back to root mntns during create and clone

Systems based on systemd mount the root shared by default. We don't want
mounts done during creation by templates nor those done internally by
bdev during rsync based clones to propagate to the root mntns.

The create case already had the right check, but the mount call was
missing "/", so it was failing.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev.c
src/lxc/lxccontainer.c