Fedora 36: Kernel upgrade problem.

Started by DKnoto, July 11, 2022, 02:16:48 PM

Previous topic - Next topic

DKnoto

I recently upgraded Fedora 36. DNF showed me that he has installed a new kernel 5.18.10. Unfortunately, petitboot still only sees kernel 5.18.7 after a reboot. Do I have to do anything else special?
Desktop: Talos II T2P9S01 REV 1.01 | IBM Power 9/18c DD2.3, 02CY646 | AMD Radeon Pro WX7100 | 64GB RAM | SSD 1TB

MauryG5

Hi, Petit boot on Fedora usually gets to see up to 3 Kernels installed by default. This is because I don't know if you know, Fedora by defoult keeps up to 3 installed kernels. So I don't know if you mean that you see the old one again and why you see it, or if you don't see 5.18.10 and you still see only 5.18.7 ... The post is not clear ...

DKnoto

I added pictures. What petetiboot sees and what I have in the /boot directory.
Desktop: Talos II T2P9S01 REV 1.01 | IBM Power 9/18c DD2.3, 02CY646 | AMD Radeon Pro WX7100 | 64GB RAM | SSD 1TB

MPC7500

#3
As MauryG5 said, usually Fedora installs three Kernel max (installonly_limit=3). You could look in the dnf.conf, IIRC if this is changed for what ever reason.
Then I would try to "sudo update-grub" if anything changes. Usually this is done automatically.

MauryG5

#4
What I cannot understand is why on the petit boot it does not display the other 2, it is very strange in fact ... I never had such a situation when I was using Fedora ... You should also try in case with the question that shows all installed kernels and see what it says from that ...

"rpm -qa | grep kernel"
With this you see more effectively if there are kernels installed, I would not like that through the command you give, it shows you some files but in reality there is not everything you need. Check well with that command and see if it gives you the list of 3 Kernels that are seen in the command you give ...

ClassicHasClass

Quote from: DKnoto on July 11, 2022, 02:16:48 PM
I recently upgraded Fedora 36. DNF showed me that he has installed a new kernel 5.18.10. Unfortunately, petitboot still only sees kernel 5.18.7 after a reboot. Do I have to do anything else special?

You may have hit what I hit in F35: https://www.talospace.com/2021/11/fedora-35-mini-review-on-blackbird-and.html

The solution was to boot with the latest kernel it offers you and immediately grub2-mkconfig -o /boot/grub2/grub.cfg and restart.

DKnoto

Many thanks to ClassicHasClass, that was it.
Desktop: Talos II T2P9S01 REV 1.01 | IBM Power 9/18c DD2.3, 02CY646 | AMD Radeon Pro WX7100 | 64GB RAM | SSD 1TB

DKnoto

AlmaLinux 9 has the same problem. After manually updating the configuration of grub, you can see all your Linux kernels in the list  ;D
Desktop: Talos II T2P9S01 REV 1.01 | IBM Power 9/18c DD2.3, 02CY646 | AMD Radeon Pro WX7100 | 64GB RAM | SSD 1TB

DKnoto

Additionally, must remember to manually remove old kernels. The update script doesn't work in this regard either and the /boot directory gets clogged up quickly.
Desktop: Talos II T2P9S01 REV 1.01 | IBM Power 9/18c DD2.3, 02CY646 | AMD Radeon Pro WX7100 | 64GB RAM | SSD 1TB