Commit 5d4d3ebb by Natanael Copa Committed by Serge Hallyn

lxc-init: continue even if we fail to mount /dev/mqueue

The 'lxc-init' (a lightweight init process used by lxc-execute in place of upstart etc) tries to mount /dev/mqueue during startup. If that fails (for instance due to missing support for mqueue in kernel) then it aborts execution and returns -1. This is unreasonable as very few applications actually need /dev/mqueue. This similar to what we do with /dev/shm. Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 71b0fed6
...@@ -148,8 +148,9 @@ extern int lxc_setup_fs(void) ...@@ -148,8 +148,9 @@ extern int lxc_setup_fs(void)
return 0; return 0;
} }
/* continue even without posix message queue support */
if (mount_fs("mqueue", "/dev/mqueue", "mqueue")) if (mount_fs("mqueue", "/dev/mqueue", "mqueue"))
return -1; INFO("failed to mount /dev/mqueue");
return 0; return 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