]> git.ipfire.org Git - thirdparty/lxc.git/commit
ubuntu templates: add some kernel filesystems to container fstab
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 17 Jul 2013 14:38:28 +0000 (09:38 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 17 Jul 2013 14:56:57 +0000 (09:56 -0500)
commit6f259716e75552cf46ee5125bdbd21e34456d0c0
tree2e9ff07b8d17a4ed9efd2e5053d13def81ab05e6
parent8058be395d46cfabf2dacd7df79e95309619986a
ubuntu templates: add some kernel filesystems to container fstab

The debugfs, fusectl, and securityfs may not be mounted inside a
non-init userns.  But mountall hangs waiting for them to be
mounted.  So just pre-mount them using $lxcpath/$name/fstab as
bind mounts, which will prevent mountall from trying to mount
them.

If the kernel doesn't provide them, then the bind mount failure
will be ignored, and mountall in the container will proceed
without the mount since it is 'optional'.  But without these
bind mounts, starting a container inside a user namespace
hangs.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-ubuntu-cloud.in
templates/lxc-ubuntu.in