summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-09-10 15:28:44 +0200
committerJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-09-10 15:33:21 +0200
commit3ec57cabfd94ee8257e1935751afed7e1731a3ea (patch)
tree55ffbbd57e86241482f026982335a3781b1bf7d8
parent4f2fce70da878ad03dc77324f6916bfcae447e1e (diff)
Force apt-get to use ipv4 addresses
Workaround to prevent apt-get from using ipv6 addresses on LF POD. JIRA: - Change-Id: I58e31a01f03271cb716a76e5abed18d67d87a0a7 Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
-rwxr-xr-xtools/ubuntu-server-cloudimg-modify.sh3
1 files changed, 3 insertions, 0 deletions
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 \