From ec2be8a75e88deb12eed6cee75e4a2549f9374e2 Mon Sep 17 00:00:00 2001
From: Antoine Musso <hashar@free.fr>
Date: Thu, 9 Jul 2015 13:59:03 +0200
Subject: [PATCH] debian: install DHCP client and ifconfig packages

When building an image having the elements debian and vm, cloud-init
fails with:

    ci-info: !!!!!!!!Net device info failed!!!!!!!!

Looking at the source code, it executes ifconfig to gather informations
but the `debian` elements does not provide it.  There is also no DHCP
client available which is rather painful.

Install isc-dhcp-client to provide a DHCP client.
Install net-tools to provide ifconfig, required by cloud-init.

Ref: https://phabricator.wikimedia.org/T105152
Change-Id: I76dfd4f87a5c9f08e7c572fb4f5ebeeb34f5f66a
---
 elements/debian/package-installs.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elements/debian/package-installs.yaml b/elements/debian/package-installs.yaml
index 4ebc38cf9..b36f3da74 100644
--- a/elements/debian/package-installs.yaml
+++ b/elements/debian/package-installs.yaml
@@ -5,6 +5,8 @@ kbd:
 curl:
 rsync:
 bash-completion:
+isc-dhcp-client:
+net-tools:
 cloud-init:
 cloud-utils:
 cloud-initramfs-growroot: