]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-plamo: mount tmpfs on /dev/shm
authorTAMUKI Shoichi <tamuki@linet.gr.jp>
Wed, 19 Nov 2014 08:23:36 +0000 (17:23 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 24 Nov 2014 21:07:08 +0000 (16:07 -0500)
Do mkdir $rootfs/dev/shm and then mount tmpfs on /dev/shm.

Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
config/templates/plamo.common.conf.in
templates/lxc-plamo.in

index 483a5569aa161309f57ea6a298aa5fdb1ce8b163..22d92074b1dcb5b740bd072bbb5d2aa61af0a928 100644 (file)
@@ -3,6 +3,7 @@ lxc.include = @LXCTEMPLATECONFIG@/common.conf
 
 # Default mount
 lxc.mount.auto = proc sys cgroup
+lxc.mount.entry = none dev/shm tmpfs nosuid,nodev,noexec,mode=1777 0 0
 
 # Doesn't support consoles in /dev/lxc/
 lxc.devttydir =
index ce98c1a5f4abd80c3b41352401c3164265ecf019..5061056e8d3006b5cf284b4199411e32d72e8b89 100644 (file)
@@ -153,6 +153,7 @@ configure_plamo() {
   chmod    666 $rootfs/dev/random
   mknod -m 666 $rootfs/dev/urandom c 1 9
   mkdir -m 755 $rootfs/dev/pts
+  mkdir -m 755 $rootfs/dev/shm
   chmod    666 $rootfs/dev/tty
   chmod    600 $rootfs/dev/console
   mknod -m 666 $rootfs/dev/tty0 c 4 0