[lxc-devel] [PATCH v2] lxc-busybox: make securityfs bind-mount optional
Bogdan Purcareata
bogdan.purcareata at freescale.com
Mon Dec 9 12:10:15 UTC 2013
Prevent container start from failing when running Busybox containers on hosts without securityfs support.
Signed-off-by: Bogdan Purcareata <bogdan.purcareata at freescale.com>
---
templates/lxc-busybox.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
index 97614c6..8232334 100644
--- a/templates/lxc-busybox.in
+++ b/templates/lxc-busybox.in
@@ -292,7 +292,7 @@ EOF
echo "lxc.mount.entry = /$dir $dir none ro,bind 0 0" >> $path/config
fi
done
- echo "lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind 0 0" >>$path/config
+ echo "lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind,optional 0 0" >>$path/config
echo "lxc.mount.auto = proc:mixed sys" >>$path/config
}
--
1.7.11.7
More information about the lxc-devel
mailing list