Fedora is installed in a partition of the external SSD aigo NVMe SSD P7000Z 4TB
Previous I asked in reddit and got no useful answer. I decided to wait fedora releasing a new kernel. Today I installed the latest kernel 6.8.10 the issue still exists.
It is relevant when talking about compiling kernel modules.
sudo dnf install kernel-devel kernel-headers.
I believe the kernel headers package for the 6.8 kernels is at 6.8.3 while the devel package matches the kernel version. You may need to install the kernel-devel package for the 6.8.5 kernel then do a dnf upgrade to get the same package for the 6.8.10 kernel.
These kinds of problems can usually be avoided by using only kernels provided directly from fedora. Akmods can only use the fedora packages to build the driver modules.
Perform the dnf upgrade step I mentioned above, then run sudo akmods --force --kernels 6.8.10-300.fc40.x86_64 to build the kernel modules for the 6.8.10 kernel.
Boot to the 6.8.5 kernel then run journalctl -b -1 to see the logs for the failed boot if logging had time to start
If that fails to show the failed boot attempt then run sudo dnf remove kernel*6.8.10* to remove all the 6.8.10 kernel packages followed by a reboot then reinstall the newer kernel with dnf upgrade Wait at least 5 minutes after the upgrade completes before rebooting and trying the 6.8.10 kernel again.
In this situation, I would add the kernel packages exactly by name to make up the ‘sudo dnf remove …’
to only target the 6.8.10 kernel packages. Then use --exclude=< package>,… to unallow the removal of whatever other packages it’s trying to remove that pull in all those others you want to keep.
This should avoid removing all the unused dependencies.
The removal of akmod-nvidia and akmods when removing the 6.8.10 kernel is very odd since I thought you claimed to have the nvidia driver working with the 6.8.5 kernel.
Please show the output of dnf list installed kernel* and dnf list installed \*nvidia\*so we can tell exactly what is installed and functional. (do this before removing anything)
To remove specific kernel without removing all those other packages, you can also use for example (change to your specific kernel version): sudo dnf remove $(rpm -qa | grep ^kernel | grep 6.8.10 | grep -v headers)
There seems to be an issue with thunderbolt/usb4 ssd’s/nvme’s from kernel 6.8.8 or 6.8.9 and later. Workaround is to edit /etc/default/grub and add thunderbolt.host_reset=false to GRUB_CMDLINE_LINUX= (or if you can’t boot anymore, edit kernel startup by pressing e at the kernel selection screen and add the parameter there). Credits for this one go to @andreas574 in topic: Fedora 40 returns Btrfs error with Kernels 6.8.9 and 6.8.10. Boots fine with Kernel 6.8.5