mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 15:01:57 +00:00
lxc-plamo: mount tmpfs on /dev/shm
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>
This commit is contained in:
parent
a9bf60bab5
commit
6df4f94574
@ -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() {
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user