]> git.ipfire.org Git - thirdparty/lxc.git/commit
fill_autodev: bind-mount if mknod fails (v3)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 12 Jan 2015 23:56:28 +0000 (23:56 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 16 Jan 2015 00:10:15 +0000 (19:10 -0500)
commit9cb4d183559d7f0b1008ea077be8e7793a7ba72d
tree1ce179fc30b81861331745b7da7b6b05a5f94df0
parent87da4ec3371b975df8387360524c76cb4d4b6a4a
fill_autodev: bind-mount if mknod fails (v3)

First, rename setup_autodev to fill_autodev, since all it
does is populate it, not fully set it up.

Secondly, if mknod of a device fails, then try bind-mounting
it from the host rather than failing immediately.

Note that this isn't an urgent patch because the common.userns
configuration hook already specifies bind,create=file mount
entries for all the devices we would want.

Changelog (v3): ignore if /dev doesn't exist

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