From b53e01570ee880d43e1f9d1b7791d0254a7d8a6e Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Wed, 11 Nov 2015 18:56:53 +0100 Subject: Update /etc/hosts in yardstick cloud image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding the hostname to /etc/hosts prevents some 'unable to resolve host' error messages. Change-Id: I1fd16007955287d436e895d53db6ce19b0b6fe3e Signed-off-by: Jo¶rgen Karlsson --- tools/ubuntu-server-cloudimg-modify.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/ubuntu-server-cloudimg-modify.sh b/tools/ubuntu-server-cloudimg-modify.sh index 06579ff9a..bdf96ba5a 100755 --- a/tools/ubuntu-server-cloudimg-modify.sh +++ b/tools/ubuntu-server-cloudimg-modify.sh @@ -32,6 +32,11 @@ grep trusty /etc/apt/sources.list && \ # Force apt to use ipv4 due to build problems on LF POD. echo 'Acquire::ForceIPv4 "true";' > /etc/apt/apt.conf.d/99force-ipv4 +# Add hostname to /etc/hosts. +cat </etc/cloud/cloud.cfg.d/10_etc_hosts.cfg +manage_etc_hosts: True +EOF + apt-get update apt-get install -y \ fio \ -- cgit 1.2.3-korg