Added --create-dirs to Dockerfile.kconfig to fix a crash when

the sources/ directory does not exist

Signed-off-by: Loïc Pottier <lpottier@isi.edu>
This commit is contained in:
Loïc Pottier 2019-06-01 19:24:02 -07:00
parent 845e25a569
commit 52aa902800
No known key found for this signature in database
GPG Key ID: 408FF454E357A0A3

View File

@ -25,7 +25,7 @@ RUN set -e && \
MAJOR=v${MAJOR}.x && \
echo "Downloading/Unpacking $VERSION" && \
KERNEL_SOURCE=https://www.kernel.org/pub/linux/kernel/${MAJOR}/linux-${VERSION}.tar.xz && \
[ -f sources/linux-${VERSION}.tar.xz ] || curl -fSLo sources/linux-${VERSION}.tar.xz ${KERNEL_SOURCE} && \
[ -f sources/linux-${VERSION}.tar.xz ] || curl -fSLo sources/linux-${VERSION}.tar.xz --create-dirs ${KERNEL_SOURCE} && \
bsdtar xf sources/linux-${VERSION}.tar.xz; \
done