The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / patches-buildroot / ifupdown-cirros.patch
diff --git a/cirros-testvm/src-cirros/patches-buildroot/ifupdown-cirros.patch b/cirros-testvm/src-cirros/patches-buildroot/ifupdown-cirros.patch
new file mode 100644 (file)
index 0000000..f778b2d
--- /dev/null
@@ -0,0 +1,21 @@
+--- a/package/busybox/busybox-01-ifupdown-cirros.patch 1970-01-01 01:00:00.000000000 +0100
++++ b/package/busybox/busybox-01-ifupdown-cirros.patch 2014-07-30 11:49:02.213528074 +0200
+@@ -0,0 +1,17 @@
++Busybox tries several dhcpclients in a specific order, if one is found as
++executable it gets the honor of asking for an address. By adding cirros as the
++first option we make sure the /sbin/ifupdown script is used.
++This depends heavily on CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP=y.
++
++--- a/networking/ifupdown.c   2014-07-30 11:38:03.708210386 +0200
+++++ b/networking/ifupdown.c   2014-07-30 11:38:24.106941433 +0200
++@@ -521,6 +521,10 @@
++ };
++ 
++ static const struct dhcp_client_t ext_dhcp_clients[] = {
+++     { "cirros-dhcpc",
+++             "cirros-dhcpc up %iface%",
+++             "cirros-dhcpc down %iface%",
+++     },
++      { "dhcpcd",
++              "dhcpcd[[ -h %hostname%]][[ -i %vendor%]][[ -I %client%]][[ -l %leasetime%]] %iface%",
++              "dhcpcd -k %iface%",