Skip to content

Commit

Permalink
Merge pull request #246 from Luap99/revert-kernel
Browse files Browse the repository at this point in the history
Revert "Hard-code older F36/F37 kernel versions"
  • Loading branch information
Luap99 authored Jan 16, 2023
2 parents b555988 + 5ca3cd8 commit de5d66b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cache_images/fedora_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,6 @@ 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

0 comments on commit de5d66b

Please sign in to comment.