]> git.ipfire.org Git - thirdparty/lxc.git/commit
do_rootfs_setup: fix return bugs
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 27 Oct 2014 03:01:30 +0000 (22:01 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Nov 2014 22:06:57 +0000 (17:06 -0500)
commit6abb0d4af4e6676cfaed6f6ff71bb968896bd4c3
tree978fe23d41db2f495bebf9d593cf5f123ffedd4d
parent7495c7721d53c2c1a4e70d21e22d67851ba5e203
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