]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Only ummount /proc, /sys, /dev if the root source is '/'
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 5 Jul 2012 16:07:48 +0000 (17:07 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 5 Jul 2012 16:40:52 +0000 (17:40 +0100)
commit60687546705bab38bd5245713601b717b9b16c9d
treebc69019e0b2be3d23c5771e1afe3672f80f45ed4
parentc47a8aec531714101dd1eb2088742c60296b852b
Only ummount /proc, /sys, /dev if the root source is '/'

Previous commits added code to unmount the existing /proc,
/sys and /dev hierarchies on the root filesystem of the
container. This should only have been done if the container's
root filesystem was the same as the host's root. ie if
the root source is '/'.   As it is, this causes LXC containersr
to fail to start if their root source is not '/'

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c