]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-init: continue even if we fail to mount /dev/mqueue
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 12 Jun 2013 09:18:04 +0000 (11:18 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 12 Jun 2013 13:06:28 +0000 (08:06 -0500)
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: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/utils.c

index 6c0f9d0651fc118a9d9c21e2d9bc4a42470bd70e..136f943a1592b2df9a629322a36b88bc75d32589 100644 (file)
@@ -148,8 +148,9 @@ extern int lxc_setup_fs(void)
                return 0;
        }
 
+       /* continue even without posix message queue support */
        if (mount_fs("mqueue", "/dev/mqueue", "mqueue"))
-               return -1;
+               INFO("failed to mount /dev/mqueue");
 
        return 0;
 }