[libvirt] [PATCH] Only ummount /proc, /sys, /dev if the root source is '/'

Eric Blake eblake at redhat.com
Thu Jul 5 16:30:51 UTC 2012

On 07/05/2012 10:09 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 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 at redhat.com>
> ---
>  src/lxc/lxc_container.c |   10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)


Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120705/774e6870/attachment-0001.sig>

More information about the libvir-list mailing list