]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-alpine: create /dev/shm before mounting
authorNatanael Copa <ncopa@alpinelinux.org>
Fri, 24 Apr 2015 08:26:40 +0000 (10:26 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Apr 2015 15:04:32 +0000 (11:04 -0400)
This is needed for lxc.autodev=1 to work.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-alpine.in

index 886a8380640133b45fce120e1825cb81d9fc9cae..963c42a995c9323eddf81f6bbdc2655bb5ab18b1 100644 (file)
@@ -251,7 +251,7 @@ lxc.cgroup.devices.allow = c 254:0 rm
 # mounts point
 lxc.mount.auto=cgroup:mixed proc:mixed sys:mixed
 lxc.mount.entry=run run tmpfs nodev,noexec,nosuid,relatime,size=1m,mode=0755 0 0
-lxc.mount.entry=shm dev/shm tmpfs nodev,nosuid,noexec,mode=1777 0 0
+lxc.mount.entry=shm dev/shm tmpfs nodev,nosuid,noexec,mode=1777,create=dir 0 0
 
 EOF