]> git.ipfire.org Git - thirdparty/lxc.git/commit
Specially handle block device rootfs
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 22 May 2014 20:49:15 +0000 (15:49 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 25 May 2014 14:43:50 +0000 (10:43 -0400)
commit35120d9c591c9e2b9e594c3271d93ada37dd00da
tree37133a8ad51650d48618dff57257020c81255051
parent9b8e3c96d87b7208c11204d46f4dd946e0060c95
Specially handle block device rootfs

It is not possible to mount a block device from a non-init user namespace.
Therefore if root on the host is starting a container with a uid
mapping, and the rootfs is a block device, then mount the rootfs before
we spawn the container init task.

This addresses https://github.com/lxc/lxc/issues/221

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