[one-users] Context networking script broken for Ubuntu Precise
Stefan Kooman
stefan at bit.nl
Wed Mar 12 10:20:55 PDT 2014
Hi,
For those of you using Ubuntu Precise, contextualized images and
contextualized networking: the networking script is not working because
of a bug in Ubuntu. The "service networking $action" does not work :(. The
network interfaces file is created succesfully, so after a reboot of the
vm, networking will be set up correctly. To fix this you might apply the
following patch:
--- /root/00-network 2014-03-12 15:06:21.852446011 +0100
+++ /etc/one-context.d/00-network 2014-03-12 18:15:03.797977027 +0100
@@ -167,9 +167,15 @@
{
gen_network_configuration > /etc/network/interfaces
- service networking stop
- sleep 1
- service networking start
+ if
+ [[ `lsb_release -c | awk '{print($2)}'` = precise ]]
+ then
+ service network-interface restart INTERFACE=$DEV
+ else
+ service networking stop
+ sleep 1
+ service networking start
+ fi
sleep 2
}
Gr. Stefan
[1]: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/663352
--
| BIT BV http://www.bit.nl/ Kamer van Koophandel 09090351
| GPG: 0xD14839C6 +31 318 648 688 / info at bit.nl
More information about the Users
mailing list