Raptor Computing Systems Community Forums (BETA)

Software => Operating Systems and Porting => Topic started by: DKnoto on July 11, 2022, 02:16:48 pm

Title: Fedora 36: Kernel upgrade problem.
Post by: 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?
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: MauryG5 on July 12, 2022, 08:24:05 am
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 ...
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: DKnoto on July 12, 2022, 10:08:52 am
I added pictures. What petetiboot sees and what I have in the /boot directory.
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: MPC7500 on July 12, 2022, 03:17:46 pm
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.
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: MauryG5 on July 12, 2022, 04:51:51 pm
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 ...
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: ClassicHasClass on July 13, 2022, 12:31:30 am
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.
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: DKnoto on July 13, 2022, 02:05:31 am
Many thanks to ClassicHasClass, that was it.
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: DKnoto on July 13, 2022, 12:24:18 pm
AlmaLinux 9 has the same problem. After manually updating the configuration of grub, you can see all your Linux kernels in the list  ;D
Title: Re: Fedora 36: Kernel upgrade problem.
Post by: DKnoto on July 14, 2022, 01:54:54 am
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.