[lxc-devel] [lxc/lxc] 830105: Specially handle block device rootfs
GitHub
noreply at github.com
Wed Jun 4 15:30:20 UTC 2014
Branch: refs/heads/stable-1.0
Home: https://github.com/lxc/lxc
Commit: 830105a08e044eac73f8accb3636ea51aabfed44
https://github.com/lxc/lxc/commit/830105a08e044eac73f8accb3636ea51aabfed44
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2014-06-04 (Wed, 04 Jun 2014)
Changed paths:
M src/lxc/bdev.c
M src/lxc/bdev.h
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/start.c
Log Message:
-----------
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 at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
More information about the lxc-devel
mailing list