Commit cf6df006 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 0fbc4a54
...@@ -4,6 +4,7 @@ lxc.pts = 1024 ...@@ -4,6 +4,7 @@ lxc.pts = 1024
# 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
# Default capabilities # Default capabilities
lxc.cap.drop = sys_module mac_admin mac_override sys_time lxc.cap.drop = sys_module mac_admin mac_override sys_time
......
...@@ -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