]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-plamo: fix for configuring network interface
authorTAMUKI Shoichi <tamuki@linet.gr.jp>
Tue, 3 Jun 2014 03:20:23 +0000 (12:20 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 3 Jun 2014 15:11:51 +0000 (11:11 -0400)
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@linet.gr.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-plamo.in

index 644b8d03a0fdc8f6b6d782ae57e66c49462e77ea..24ecb7e6fd6d6854e6ba2af2e32716ad080ac288 100644 (file)
@@ -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
 }