X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fpatches-buildroot%2Fifupdown-cirros.patch;fp=cirros-testvm%2Fsrc-cirros%2Fpatches-buildroot%2Fifupdown-cirros.patch;h=f778b2d0ec679bf161a7013f231665dbe8e00c84;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git 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 index 0000000..f778b2d --- /dev/null +++ b/cirros-testvm/src-cirros/patches-buildroot/ifupdown-cirros.patch @@ -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%",