/dev/shm is a symlink to /run/shm, so we need /run/shm to exist in the container rootfs. Also, /dev/mqueue does not exist on the host, and can't be created by the container. But we don't really need it so ignore that.
Signed-off-by: Serge Hallyn <[email protected]> --- src/lxc/utils.c | 5 +++-- templates/lxc-sshd.in | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index 6279d77..4647bd4 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -135,9 +135,10 @@ extern int lxc_setup_fs(void) return -1; /* If we were able to mount /dev/shm, then /dev exists */ + /* Sure, but it's read-only per config :) */ if (access("/dev/mqueue", F_OK) && mkdir("/dev/mqueue", 0666)) { - SYSERROR("failed to create '/dev/mqueue'"); - return -1; + DEBUG("failed to create '/dev/mqueue'"); + return 0; } if (mount_fs("mqueue", "/dev/mqueue", "mqueue")) diff --git a/templates/lxc-sshd.in b/templates/lxc-sshd.in index 0e8346f..bd5d293 100644 --- a/templates/lxc-sshd.in +++ b/templates/lxc-sshd.in @@ -30,6 +30,7 @@ $rootfs/var/empty/sshd \ $rootfs/var/lib/empty/sshd \ $rootfs/etc/ssh \ $rootfs/dev/shm \ +$rootfs/run/shm \ $rootfs/proc \ $rootfs/bin \ $rootfs/sbin \ -- 1.7.5.4 ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
