]> git.proxmox.com Git - mirror_lxc.git/commit
lxc-start: don't re-try to mount rootfs if we already did so
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 14 Oct 2014 11:04:35 +0000 (11:04 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 27 Oct 2014 20:54:41 +0000 (16:54 -0400)
commit6a0c909a375a75e005b2048b2d143320678e11b9
tree640afd5890b5711035add466a370bc71c24e0c39
parent0080bebf3195a4a4f4868d89224e07658a1fccca
lxc-start: don't re-try to mount rootfs if we already did so

If we are root using a user namespace and are mounting a blockdev as rootfs,
then we do this before unsharing the userns, because we are not allowed to
do it in a userns.  But after unsharing the userns, we unconditionally
retried mounting the rootfs, resulting in failure.  stop that.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/start.c