On Oct 1, 2024, at 11:42, Andras Simon <szajmi@xxxxxxxxx> wrote: > > A few months ago I upgraded a laptop to Fedora 39 but haven't used it > since, except for updating it a few times. But now I noticed that it > can only boot into an fc38 kernel. (This may have been like this since > upgrading, it's just that I didn't notice it.) In fact, there are no > fc39 kernels in /boot, even though > rpm -ql kernel-core-6.10.11 > lists > /boot/vmlinuz-6.10.11-100.fc39.x86_64 > (among other things of course) and > rpm -V kernel-core-6.10.11 > doesn't complain. > > cat /etc/redhat-release returns > Fedora release 39 (Thirty Nine) > but uname -a shows that the running kernel is 6.8.9-100.fc38 > > It's as if it didn't quite make it from 38 to 39. > > What can/should I do? I don’t know if this is the case for you, but I saw a lot of F38->F39 updates unintentionally install the “sdubby” and “systemd-boot-unsigned” packages. The sdubby package drops a file in /etc/kernel that causes the %post script of the kernel-common package to install kernels and bootloaderspec entries into /boot/efi/$MACHINE_ID/ (where $MACHINE_ID is defined in /etc/machine-id). If this directory doesn’t exist, you can ignore my post. If the directory exists, kernels and initrds are being installed into the EFI volume, but grub2 is still set to look for kernels in /boot, and bootloaderspec files in /boot/loader/entries. To fix this, uninstall sdubby, delete or move aside the machine ID directory in /boot/efi, and run: dnf reinstall kernel-core (Or figure out the right commands to run from %post, I’m lazy and dnf commands are easy, plus it proves to me that new kernels will end up in the right place. ) This should put the latest kernel and initrd into /boot. -- Jonathan Billings -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue