]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc_setup_fs: Create /dev/shm folder if it doesn't exist
authorBogdan Purcareata <bogdan.purcareata@nxp.com>
Fri, 8 Jan 2016 15:38:44 +0000 (15:38 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 22:44:32 +0000 (17:44 -0500)
commit88ba5941379aee6aab7794bff44037c1667c7460
tree8bf44d7107163338eec0b57b945da1c416ffe216
parent5ee0980d49b5c16a86c11a2a653140fa16a4a099
lxc_setup_fs: Create /dev/shm folder if it doesn't exist

When running application containers with lxc-execute, /dev is
populated only with device entries. Since /dev is a tmpfs mount in
the container environment, the /dev/shm folder not being present is not
a sufficient reason for the /dev/shm mount to fail.

Create the /dev/shm directory if not present.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/initutils.c