]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
do_rootfs_setup: fix return bugs
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 27 Oct 2014 03:01:30 +0000 (22:01 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 27 Oct 2014 03:01:30 +0000 (22:01 -0500)
commit145832ba8b1dfd0b53436e6b61ef112bbdd50c6c
treeef71c1e71db4e727b5de25212f237fca818a1491
parent9fd376e8bc2afbcd7af818cd99afbe50744628e9
do_rootfs_setup: fix return bugs

Fix return value on bind mount failure.

If we've already mounted the rootfs, exit after the bind mount
rather than re-trying the rootfs mount.  The only case where
this happens is when root is starting a container in a user
namespace and with a block device backing store.

In that case, pre-mount hooks will be executed in the initial
user namespace.  That may be worth fixing.  Or it may be what
we want.  We should think about it and fix it.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c