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 <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-11-13 10:49:04 +00:00
parent ea6ed3c354
commit f103145050

View File

@ -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