We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12bac8f commit adae952Copy full SHA for adae952
build/init/fetch-linux-headers.sh
@@ -42,6 +42,11 @@ fetch_generic_linux_sources()
42
kernel_version="$(echo "${KERNEL_VERSION}" | awk -vFS='[-+]' '{ print $1 }')"
43
major_version="$(echo "${KERNEL_VERSION}" | awk -vFS=. '{ print $1 }')"
44
45
+ # Remove the '.0' as the intial kernel major release isn't published with a patch number.
46
+ if [[ $kernel_version == *.0 ]]; then
47
+ kernel_version=$(echo $kernel_version | rev | sed s/0\.// | rev)
48
+ fi
49
+
50
echo "Fetching upstream kernel sources for ${kernel_version}."
51
mkdir -p "${BUILD_DIR}"
52
curl -sL "https://www.kernel.org/pub/linux/kernel/v${major_version}.x/linux-$kernel_version.tar.gz" \
0 commit comments