mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-15 00:22:40 +01:00
download-kernel
This commit is contained in:
@@ -11,4 +11,6 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
WORKDIR /usr/src
|
||||
|
||||
ENTRYPOINT [ "bash" ]
|
||||
COPY ./download-kernel /usr/local/bin/download-kernel
|
||||
|
||||
CMD [ "bash" ]
|
||||
|
||||
10
kernel-builder/download-kernel
Executable file
10
kernel-builder/download-kernel
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=$1
|
||||
|
||||
if [[ -z $VERSION ]]; then
|
||||
echo "Please specify a kernel version."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -sSL https://www.kernel.org/pub/linux/kernel/v3.x/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ
|
||||
Reference in New Issue
Block a user