To fix a kernel issue, how can I safely downgrade the kernel (and maybe the firmware)?

Hello,

When I face several very annoying kernel bugs like

what action can I take to go back to the version that worked a few weeks ago?

To get a workaround, I think the best solution would be to downgrade the kernel from 6.7.4-200.fc39.x86_64 to 6.6.7

My question: how can I safely downgrade the kernel (and maybe the firmware)?

While doing some research here, I found it:

On Fedora subreddit:


Is this a good way to downgrade?

From Information for build kernel-6.6.7-200.fc39 I download link next to the kernel, kernel-core, and kernel-modules packages. Once the RPMs are downloaded, I execute:

$ sudo dnf install ./path/to/kernel-4.10.8-100.fc24.x86_64.rpm ./path/to/kernel-core-4.10.8-100.fc24.x86_64.rpm ./path/to/kernel-modules-4.10.8-100.fc24.x86_64.rpm

Best regards,
Stéphane


Cross posting:

Catch the GRUB menu and select the previous kernel. Fedora keeps multiple kernels for a reason.

Here’s what I did to revert to the 6.6.7 kernel.

First, I change the installonly_limit dnf.conf parameter (tip come from this comment):

$ sudo sed -i -r "s/^installonly_limit=.*$/installonly_limit=8/" /etc/dnf/dnf.conf

From [kernel-6.6.7-200.fc39](kernel-6.6.7-200.fc39 | Build Info | koji] I downloaded these packages:

  • kernel-6.6.7-200.fc39.x86_64.rpm
  • kernel-core-6.6.7-200.fc39.x86_64.rpm
  • kernel-modules-6.6.7-200.fc39.x86_64.rpm
  • kernel-modules-core-6.6.7-200.fc39.x86_64.rpm
  • kernel-modules-extra-6.6.7-200.fc39.x86_64.rpm
  • kernel-modules-internal-6.6.7-200.fc39.x86_64.rpm
  • kernel-uki-virt-6.6.7-200.fc39.x86_64.rpm

to ~/download/.

Next, in ~/download/ I executed:

$ sudo dnf install *.rpm

And:

$ sudo grub2-editenv - unset menu_auto_hide

to display grub menu on startup.

Now, I can but on kernel 6.6.7 and these bugs are fixed:

:slightly_smiling_face:

Would booting into a previous kernel ( If you had it already, Fedora keeps 3 kernels ) would defaulting to a previous kernel had been enough to hold you over?

2 Likes