From f1031450506a6498229aa389e036e1159afacefb Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Mon, 13 Nov 2017 10:49:04 +0000 Subject: [PATCH] kernel: Switch Dockerfile.kconfig to bsdtar I got error when un-tarring the linux-4.14 kernel: tar: linux-4.14/arch/arm64/boot/dts/arm: Directory renamed before its status could be extracted tar: linux-4.14/arch/arm64/boot/dts: Directory renamed before its status could be extracted tar: linux-4.14/arch/arm64/boot: Directory renamed before its status could be extracted tar: linux-4.14/arch/arm64: Directory renamed before its status could be extracted tar: linux-4.14/arch: Directory renamed before its status could be extracted Using bsdtar, this error goes away. Signed-off-by: Rolf Neugebauer --- kernel/Dockerfile.kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/Dockerfile.kconfig b/kernel/Dockerfile.kconfig index 78a56c12a..fbd9e282c 100644 --- a/kernel/Dockerfile.kconfig +++ b/kernel/Dockerfile.kconfig @@ -4,8 +4,8 @@ RUN apk add \ build-base \ curl \ diffutils \ + libarchive-tools \ ncurses-dev \ - tar \ xz ARG KERNEL_VERSIONS @@ -17,7 +17,7 @@ RUN set -e && for VERSION in ${KERNEL_VERSIONS}; do \ echo "Downloading/Unpacking $VERSION" && \ KERNEL_SOURCE=https://www.kernel.org/pub/linux/kernel/v4.x/linux-${VERSION}.tar.xz && \ [ -f sources/linux-${VERSION}.tar.xz ] || curl -fSLo sources/linux-${VERSION}.tar.xz ${KERNEL_SOURCE} && \ - tar xf sources/linux-${VERSION}.tar.xz; \ + bsdtar xf sources/linux-${VERSION}.tar.xz; \ done # Apply patches to all kernels and move config files into place