Skip to content

Commit

Permalink
ci: hardcode guest kernel version 5.10
Browse files Browse the repository at this point in the history
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 <bchalios@amazon.es>
  • Loading branch information
bchalios committed Mar 25, 2024
1 parent 86a2559 commit 118ab7b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions resources/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,18 @@ function get_linux_tarball {
echo "Downloading the latest patch version for v$KERNEL_VERSION..."
local major_version="${KERNEL_VERSION%%.*}"
local url_base="https://cdn.kernel.org/pub/linux/kernel"
local LATEST_VERSION=$(
curl -fsSL $url_base/v$major_version.x/ \
| grep -o "linux-$KERNEL_VERSION\.[0-9]*\.tar.xz" \
| sort -rV \
| head -n 1 || true)
# 5.10 kernels starting from 5.10.211 don't build with our
# configuration. For now, pin it to the last working version.
# TODO: once this is fixed upstream we can remove this pin.
if [[ $KERNEL_VERSION == "5.10" ]]; then
local LATEST_VERSION="linux-5.10.210.tar.xz"
else
local LATEST_VERSION=$(
curl -fsSL $url_base/v$major_version.x/ \
| grep -o "linux-$KERNEL_VERSION\.[0-9]*\.tar.xz" \
| sort -rV \
| head -n 1 || true)
fi
# Fetch tarball and sha256 checksum.
curl -fsSLO "$url_base/v$major_version.x/sha256sums.asc"
curl -fsSLO "$url_base/v$major_version.x/$LATEST_VERSION"
Expand Down

0 comments on commit 118ab7b

Please sign in to comment.