Commit 6df4f945 by TAMUKI Shoichi Committed by Stéphane Graber

lxc-plamo: mount tmpfs on /dev/shm

Do mkdir $rootfs/dev/shm and then mount tmpfs on /dev/shm. Signed-off-by: 's avatarTAMUKI Shoichi <tamuki@linet.gr.jp> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent a9bf60ba
...@@ -3,6 +3,7 @@ lxc.include = @LXCTEMPLATECONFIG@/common.conf ...@@ -3,6 +3,7 @@ lxc.include = @LXCTEMPLATECONFIG@/common.conf
# Default mount # Default mount
lxc.mount.auto = proc sys cgroup 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/ # Doesn't support consoles in /dev/lxc/
lxc.devttydir = lxc.devttydir =
......
...@@ -153,6 +153,7 @@ configure_plamo() { ...@@ -153,6 +153,7 @@ configure_plamo() {
chmod 666 $rootfs/dev/random chmod 666 $rootfs/dev/random
mknod -m 666 $rootfs/dev/urandom c 1 9 mknod -m 666 $rootfs/dev/urandom c 1 9
mkdir -m 755 $rootfs/dev/pts mkdir -m 755 $rootfs/dev/pts
mkdir -m 755 $rootfs/dev/shm
chmod 666 $rootfs/dev/tty chmod 666 $rootfs/dev/tty
chmod 600 $rootfs/dev/console chmod 600 $rootfs/dev/console
mknod -m 666 $rootfs/dev/tty0 c 4 0 mknod -m 666 $rootfs/dev/tty0 c 4 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment