]> git.ipfire.org Git - thirdparty/lxc.git/commit
autodev: switch strategies (v3)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 12 Jan 2015 23:54:36 +0000 (23:54 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 16 Jan 2015 00:10:12 +0000 (19:10 -0500)
commit87da4ec3371b975df8387360524c76cb4d4b6a4a
treedf12659ce35e7819e21211b91d642bc87589fdf0
parent7d540a266389ab981c87a64050b0ba050e147e15
autodev: switch strategies (v3)

Do not keep container devs under /dev/.lxc.  Instead, always
keep them in a small tmpfs mounted at $(mounted_root)/dev.

The tmpfs is mounted in the container monitor's namespace.  This
means that at every reboot it will get re-created.  It seems to
me this better replicates what happens on a real host.

If we want devices persisting across reboots, then perhaps we can
implement a $lxcpath/$name/keepdev directory containing devices to
bind into the container at each startup.

Changelog (v2): don't bother with the $lxcpath/$name/rootfs.dev
directory, just mount the tmpfs straight into the container.

Changelog (v3): Don't create /dev if it doesn't exist

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