Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard-code older F36/F37 kernel versions #245

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cache_images/fedora_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ fi

# Only on VMs
if ! ((CONTAINER)); then
# Due to https://bugzilla.redhat.com/show_bug.cgi?id=2159066 we
# cannot use kernels after 6.0.15 until bug is fixed. Since there's
# no simple way to compare kernel versions, just hard-code what we want.
# TODO: Remove this entire conditional when bug is fixed
if [[ "$OS_RELEASE_VER" -eq 37 ]]; then
$SUDO dnf install -y kernel-6.0.7-301.fc37
$SUDO grubby --set-default /boot/vmlinuz-6.0.7-301.fc37.$(uname -m)
elif [[ "$OS_RELEASE_VER" -eq 36 ]]; then
$SUDO dnf install -y kernel-5.17.5-300.fc36
$SUDO grubby --set-default /boot/vmlinuz-5.17.5-300.fc36.$(uname -m)
fi

if [[ "$PACKER_BUILD_NAME" =~ netavark ]]; then
msg "Setting up VM for netavark testing"
echo -e '# Added during VM Image build\nsctp' |
Expand Down