mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
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:
parent
ea6ed3c354
commit
f103145050
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user