From 3ec57cabfd94ee8257e1935751afed7e1731a3ea Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Thu, 10 Sep 2015 15:28:44 +0200 Subject: Force apt-get to use ipv4 addresses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Workaround to prevent apt-get from using ipv6 addresses on LF POD. JIRA: - Change-Id: I58e31a01f03271cb716a76e5abed18d67d87a0a7 Signed-off-by: Jo¶rgen Karlsson --- tools/ubuntu-server-cloudimg-modify.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/ubuntu-server-cloudimg-modify.sh b/tools/ubuntu-server-cloudimg-modify.sh index 0e9bb4182..ac43d28f8 100755 --- a/tools/ubuntu-server-cloudimg-modify.sh +++ b/tools/ubuntu-server-cloudimg-modify.sh @@ -29,6 +29,9 @@ grep trusty /etc/apt/sources.list && \ # Workaround for building on CentOS (apt-get is not working with http sources) sed -i 's/http/ftp/' /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 + apt-get update apt-get install -y \ fio \ -- cgit 1.2.3-korg