Hi. After upgrading to Fedora 40, it doesn’t boot using the 6.8.1-300 fc40 kernel. I’m using NVIDIA GPU with proprietary drivers and encrypted LUKS. But I can still boot with the 6.7.9-200 fc39 kernel normally.
I have tried adding plymouth.enable=0 disablehooks=plymouth nomodeset on the grub commandline, but it also doesn’t work. I have also tried to reinstall the kernel (dnf reinstall kernel kernel-*) and rebuild the kernel modules (akmods --kernels '6.8.1-300.fc40.x86_64' --rebuild --force), but it also doesn’t work. It doesn’t even display the prompt to enter the password to decrypt the drive. It also doesn’t produce any log at all, journalctl -b -1 just display the previous boot, not the failed boot.
And by the way, how can I disable or blacklist the 6.8.1 kernel so GRUB doesn’t automatically boot that? Thank you.
You might want to join the fedora test mailing list and contibute this infomation to the tester.
The problem is that you are not prompted to dectypt your disk?
Edit the boot command to remove quiet and rhgb so that you can see what is going on for the boot that fails. No need for the plymouth.enable=0 disablehooks=plymouth.
Then let us know what you find.
Also let us know the hardware you are running inxi -FGzz
FYI: I’m running the 6.8.1-201 kernel myself, but on f39 and its working.
You can us grubby to set the default kernel of your choice.
Since Fedora 40 beta has just been released rpmfusion may not have akmods built for 40 yet also kernel-devel also may not be in the repos.You may have to wait until it catches up and just choose the older kernel at boot time.
You should not expect proprietary drivers to work immediately – that is not under kernel.org or Fedora control. With graphics issues, it may be necessary to enter the LUKS password while the screen is blank. Did you try that? While testing F40 you could disable the Nvidia proprietary drivers so nouveau is used. It is relatively easy to switch back and forth.
The failed boot never reached the stage where journalctl was active. If you can boot after “blindly” entering the LUKS password you might get useful information about the Nvidia issues.
I just checked and the nvidia drivers are available from rpmfusion for fedora 40.
I am using the fedora 40 beta and fully updated when I tested that.
The failure to display the luks prompt for unlocking may be due to how the drivers were installed.
There is a known issue when doing a driver install or kernel update if the user reboots too soon the driver may not get properly built and thus may not work properly even if it shows as installed.
I find that for some the simple 2 step process of removing the driver then reinstalling it has worked.
sudo dnf remove kmod-nvidia-6.8.1* would remove the current nvidia modules for that kernel.
sudo akmods --force would build the new modules for that kernel.
A reboot then should load the newer modules.
You might also be able to build the drivers explicitly for the 6.8.1 kernel by first running dnf list installed kernel and see the exact version that shows for the 6.8.1 kernel. It would be in the same format as shown with uname -r (probably something like 6.8.1-300.fc40.x86_64 as it shows on my machine). The command to build the module for only that kernel would then be sudo akmods --force --kernels 6.8.1-300.fc40.x86_64
It would be worth a try to see if that may help.
It also would be worth looking at the journalctl output for the failed boot after rebooting with the older kernel and see what it may be able to tell you, though I note you have already tried that and were unable to do so.
Thanks. I have tried this, but it still show nothing except for the GRUB “Booting from command list” message.
Thanks. It booted successfully when I blindly typed the password.
Thanks, I tried this but the problem still happen.
After I blindly typed the password, it booted normally. Then I compare the logs. The normal boots have the following lines while the “no password prompt” boots don’t:
< The simpledrm driver will not be probed
< efifb: probing for efifb
< efifb: showing boot graphics
< efifb: framebuffer at 0xfb00000000, using 8640k, total 8640k
< efifb: mode is 1920x1080x32, linelength=8192, pages=1
< efifb: scrolling: redraw
< efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
< fbcon: Deferring console take-over
< fb0: EFI VGA frame buffer device
< Console: switching to colour frame buffer device 240x67
< Console: switching to colour dummy device 80x25
My kernel options are the same between 6.7.9 and 6.8.1:
title Fedora Linux (6.8.1-300.fc40.x86_64) 40 (Workstation Edition Prerelease)
version 6.8.1-300.fc40.x86_64
linux /vmlinuz-6.8.1-300.fc40.x86_64
initrd /initramfs-6.8.1-300.fc40.x86_64.img
options root=UUID=ce2be382-d25a-47ab-b3bf-a2ffe799e312 ro rootflags=subvol=root initcall_blacklist=simpledrm_platform_driver_init rd.luks.uuid=luks-cd9ea42d-62e5-41f5-8367-3564b6baa198 rhgb quiet initcall_blacklist=simpledrm_platform_driver_init nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
grub_users $grub_users
grub_arg --unrestricted
grub_class fedora