update kernel-builder

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-01-16 14:06:53 -05:00
parent 0316643fe2
commit 47a9a13c2d
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 3 additions and 3 deletions

View File

@ -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" ]

View File

@ -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