]> git.proxmox.com Git - mirror_lxc.git/commit
if lxc-init can't mount /dev/shm, don't fail.
authorSerge Hallyn <serge.hallyn@canonical.com>
Tue, 7 Feb 2012 15:08:37 +0000 (09:08 -0600)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Sun, 26 Feb 2012 09:44:40 +0000 (10:44 +0100)
commit721d262cf10111af48514ec90cf85c88f8335aff
tree421c70ef0a67fd17cc775412c7f8581a45b83f04
parent8b004f0735b8f2d9e1dd973c2db61d55fdf743c2
if lxc-init can't mount /dev/shm, don't fail.

The 'lxc-init' (a lightweight init process used by lxc-execute in place of
upstart etc) tries to mount /dev/shm during startup. If that fails (for
instance /dev/shm does not exist) then it aborts execution and returns -1. This
is unreasonable as very few applications actually need /dev/shm.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/utils.c