From aadd458215c973af5c54c249482948e8e95b3edf Mon Sep 17 00:00:00 2001 From: TAMUKI Shoichi Date: Tue, 3 Jun 2014 12:20:23 +0900 Subject: [PATCH] lxc-plamo: fix for configuring network interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Stéphane Graber --- templates/lxc-plamo.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in index 644b8d03a..24ecb7e6f 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 } -- 2.39.5