[lxc-devel] disable container start if lxcfs is not running
Dietmar Maurer
dietmar at proxmox.com
Fri May 8 13:29:25 UTC 2015
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
Index: new/share/lxc.mount.hook.in
===================================================================
--- new.orig/share/lxc.mount.hook.in
+++ new/share/lxc.mount.hook.in
@@ -15,6 +15,9 @@ if [ -d @LXCFSTARGETDIR@/proc/ ]; then
[ -e "${LXC_ROOTFS_MOUNT}/proc/$(basename $entry)" ] || continue
mount -n --bind $entry ${LXC_ROOTFS_MOUNT}/proc/$(basename $entry)
done
+else
+ >&2 echo "missing /var/lib/lxcfs/proc/ - lxcfs not running?"
+ exit 1
fi
# /sys/fs/cgroup files
More information about the lxc-devel
mailing list