[lxc-devel] [PATCH] lxc-plamo: fix for configuring network interface

TAMUKI Shoichi tamuki at linet.gr.jp
Tue Jun 3 03:20:23 UTC 2014


Fix configure_plamo so as not to configure wireless network interface
in containers even if the host uses wireless network interface.

Signed-off-by: TAMUKI Shoichi <tamuki at linet.gr.jp>
---
 templates/lxc-plamo.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in
index 644b8d0..24ecb7e 100644
--- a/templates/lxc-plamo.in
+++ b/templates/lxc-plamo.in
@@ -237,6 +237,10 @@ configure_plamo() {
   rm -f $rootfs/etc/rc.d/rc.inet1.tradnet
   sh /tmp/netconfig.rconly
   rm -f /tmp/netconfig.rconly
+  ed - $rootfs/etc/rc.d/rc.inet1.tradnet <<- "EOF"
+	g/cmdline/s/if/& false \&\&/
+	w
+	EOF
   return 0
 }
 
-- 
1.9.0


More information about the lxc-devel mailing list