[CRIU] [PATCH 1/2] ppc64le: travis: fixup Ubuntu repositories

Mike Rapoport rppt at linux.vnet.ibm.com
Thu Aug 24 11:13:05 MSK 2017


The ppc64le docker image has broken /etc/apt/sources.list. A small fixup to
it allows running ppc64le tests.

Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 scripts/build/Dockerfile.ppc64le.hdr | 1 +
 scripts/travis/travis-tests          | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/scripts/build/Dockerfile.ppc64le.hdr b/scripts/build/Dockerfile.ppc64le.hdr
index 6c4b22e..6b3c659 100644
--- a/scripts/build/Dockerfile.ppc64le.hdr
+++ b/scripts/build/Dockerfile.ppc64le.hdr
@@ -2,3 +2,4 @@ FROM ppc64le/ubuntu:trusty
 
 ENV QEMU_CPU POWER8
 COPY scripts/build/qemu-user-static/usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le-static
+RUN sed -i '/security/ d' /etc/apt/sources.list
diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests
index 18e091b..9e1bf83 100755
--- a/scripts/travis/travis-tests
+++ b/scripts/travis/travis-tests
@@ -30,6 +30,12 @@ travis_prep () {
 		CC="ccache $CC"
 	fi
 
+	# The /etc/apt/sources.list in the current trusty image for ppc64le is
+	# broken and needs to be fixed
+	if [ "$TR_ARCH" = "ppc64le" ] ; then
+		sed -i '/security/ d' /etc/apt/sources.list
+	fi
+
 	apt-get update -qq
 	apt-get install -qq --no-install-recommends $TRAVIS_PKGS
 	chmod a+x $HOME
-- 
2.7.4



More information about the CRIU mailing list