chiark / gitweb /
nspawn: mount tmpfs on /dev/shm
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 16 Sep 2012 12:58:51 +0000 (14:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 16 Sep 2012 14:20:09 +0000 (16:20 +0200)
commitede89845a49c735fa9e8a04bd80f6e94ea84aeb9
tree7dfa2c291884dce81a36122712a45eb5544fe602
parentd8831ed55442cfe0a3ca54644282a7c27d26f1b0
nspawn: mount tmpfs on /dev/shm

Most things seem to function fine without /dev/shm, but it is expected
to be there (quoting linux/Documentation/filesystems/tmpfs.txt:
glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for POSIX
shared memory (shm_open, shm_unlink)).

Since /tmp/ is already mounted as tmpfs, it would be enough to mkdir
/tmp/shm and chmod it. Mounting it separately has the advantage that
it can be easily remounted to change the quota.
src/nspawn/nspawn.c