Skip to content

Commit 118ab7b

Browse files
committed
ci: hardcode guest kernel version 5.10
Starting from 5.10.211 the 5.10 guest kernels don't build neither for x86_64 nor Aarch64 with our kernel configs. There is a missing header file in arch/x86/kernel/paravirt.c, so when we build with CONFIG_PARAVIRT on, the build fails. Pin the 5.10 guest kernel version to the latest one working for us (5.10.210) until this issue is fixed upstream. Signed-off-by: Babis Chalios <[email protected]>
1 parent 86a2559 commit 118ab7b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

resources/rebuild.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,18 @@ function get_linux_tarball {
151151
echo "Downloading the latest patch version for v$KERNEL_VERSION..."
152152
local major_version="${KERNEL_VERSION%%.*}"
153153
local url_base="https://cdn.kernel.org/pub/linux/kernel"
154-
local LATEST_VERSION=$(
155-
curl -fsSL $url_base/v$major_version.x/ \
156-
| grep -o "linux-$KERNEL_VERSION\.[0-9]*\.tar.xz" \
157-
| sort -rV \
158-
| head -n 1 || true)
154+
# 5.10 kernels starting from 5.10.211 don't build with our
155+
# configuration. For now, pin it to the last working version.
156+
# TODO: once this is fixed upstream we can remove this pin.
157+
if [[ $KERNEL_VERSION == "5.10" ]]; then
158+
local LATEST_VERSION="linux-5.10.210.tar.xz"
159+
else
160+
local LATEST_VERSION=$(
161+
curl -fsSL $url_base/v$major_version.x/ \
162+
| grep -o "linux-$KERNEL_VERSION\.[0-9]*\.tar.xz" \
163+
| sort -rV \
164+
| head -n 1 || true)
165+
fi
159166
# Fetch tarball and sha256 checksum.
160167
curl -fsSLO "$url_base/v$major_version.x/sha256sums.asc"
161168
curl -fsSLO "$url_base/v$major_version.x/$LATEST_VERSION"

0 commit comments

Comments
 (0)