mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
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:
parent
845e25a569
commit
52aa902800
@ -25,7 +25,7 @@ RUN set -e && \
|
|||||||
MAJOR=v${MAJOR}.x && \
|
MAJOR=v${MAJOR}.x && \
|
||||||
echo "Downloading/Unpacking $VERSION" && \
|
echo "Downloading/Unpacking $VERSION" && \
|
||||||
KERNEL_SOURCE=https://www.kernel.org/pub/linux/kernel/${MAJOR}/linux-${VERSION}.tar.xz && \
|
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; \
|
bsdtar xf sources/linux-${VERSION}.tar.xz; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user