mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update kernel-builder
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
0316643fe2
commit
47a9a13c2d
|
@ -22,6 +22,6 @@ WORKDIR $HOME
|
|||
|
||||
ENV JOBS 4
|
||||
|
||||
COPY install_kernel /usr/local/bin/install_kernel
|
||||
COPY build_kernel /usr/local/bin/build_kernel
|
||||
|
||||
CMD [ "bash" ]
|
||||
|
|
|
@ -54,11 +54,11 @@ install_kernel(){
|
|||
|
||||
# get the kernel source
|
||||
if [[ "$VERSION" == *-rc* ]]; then
|
||||
[ -d /usr/src/linux-${VERSION} ] || curl -sSL https://kernel.org/pub/linux/kernel/v${MAJOR_VERSION}.x/testing/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ
|
||||
[ -d /usr/src/linux-${VERSION} ] || curl -sSL "https://git.kernel.org/torvalds/t/linux-${VERSION}.tar.gz" | tar -v -C /usr/src -x
|
||||
|
||||
MAJOR_MINOR_VERSION="${MAJOR_VERSION}.x-rcN"
|
||||
else
|
||||
[ -d /usr/src/linux-${VERSION} ] || curl -sSL https://cdn.kernel.org/pub/linux/kernel/v${MAJOR_VERSION}.x/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ
|
||||
[ -d /usr/src/linux-${VERSION} ] || curl -sSL "https://cdn.kernel.org/pub/linux/kernel/v${MAJOR_VERSION}.x/linux-${VERSION}.tar.xz" | tar -v -C /usr/src -xJ
|
||||
fi
|
||||
|
||||
if [[ "$OPT" == "aufs" ]]; then
|
Loading…
Reference in New Issue
Block a user