Problem booting after upgrade to F41 while using F40 6.12.4 kernel worked

Not working F41 6.12.4 , 6.12.5 & 6.12.6

[  OK  ] Mounted boot.mount - /boot.
         Mounting boot-efi.mount - /boot/efi...
[FAILED] Failed to mount boot-efi.mount - /boot/efi.
See 'systemctl status boot-efi.mount' for details.
[DEPEND] Dependency failed for local-fs.target - Local File Systems.
[DEPEND] Dependency failed for selinux-autorelabel-mark.service - Mark the need to relabel after reboot.
[  OK  ] Stopped systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target timers.target - Timer Units.
[  OK  ] Listening on systemd-bootctl.socket - Boot Entries Service Socket.

working F40 kernel 6.12.4-100.fc40.x86_64

[  OK  ] Mounted boot.mount - /boot.
         Mounting boot-efi.mount - /boot/efi...
[  OK  ] Mounted home.mount - /home.
[  OK  ] Mounted boot-efi.mount - /boot/efi.
[  OK  ] Reached target local-fs.target - Local File Systems.
$ inxi -Fzxx
System:
  Kernel: 6.12.4-100.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-38.fc40
  Desktop: MATE v: 1.28.2 wm: marco dm: 1: LightDM note: stopped 2: LXDM
    3: SDDM note: stopped 4: SLiM note: stopped Distro: Fedora Linux 41 (i3)
Machine:
  Type: Portable System: Dell product: Inspiron 3135 v: N/A
    serial: <superuser required> Chassis: type: 8 v: A02
    serial: <superuser required>
  Mobo: Dell model: 001GW6 v: A00 serial: <superuser required> part-nu: 0614
    UEFI: Dell v: A02 date: 01/03/2014
Battery:
  ID-1: BAT0 charge: 3.7 Wh (100.0%) condition: 3.7/4.5 Wh (82.4%) volts: 12.3
    min: 11.4 model: SDI Dell serial: <filter> status: full
CPU:
  Info: quad core model: AMD A6-1450 APU with Radeon HD Graphics bits: 64
    type: MCP arch: Jaguar rev: 1 cache: L1: 256 KiB L2: 2 MiB
  Speed (MHz): avg: 599 min/max: 600/1000 boost: enabled cores: 1: 599
    2: 599 3: 599 4: 599 bogomips: 7985
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Temash [Radeon HD 8250/8280G]
    vendor: Dell driver: radeon v: kernel arch: GCN-2 ports:
    active: HDMI-A-1,LVDS-1 empty: none bus-ID: 00:01.0 chip-ID: 1002:983d
  Device-2: Microdia Integrated_Webcam_HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-3:4 chip-ID: 0c45:6a00
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.4
    compositor: marco v: 1.28.0 driver: X: loaded: radeon unloaded: modesetting
    alternate: fbdev,vesa dri: radeonsi gpu: radeon display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2646x1024 s-dpi: 96
  Monitor-1: HDMI-A-1 mapped: HDMI-0 pos: primary,left model: LINK 0x0001
    res: 1280x1024 dpi: 127 diag: 378mm (14.9")
  Monitor-2: LVDS-1 mapped: LVDS pos: right model: ChiMei InnoLux 0x1118
    res: 1366x768 dpi: 136 diag: 294mm (11.6")
  API: OpenGL v: 4.5 vendor: amd mesa v: 24.2.8 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: KABINI (radeonsi LLVM 19.1.0 DRM 2.50
    6.12.4-100.fc40.x86_64) device-ID: 1002:983d
  API: Vulkan v: 1.3.296 surfaces: xcb,xlib device: 0 type: cpu driver: N/A
    device-ID: 10005:0000
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Kabini HDMI/DP Audio vendor: Dell
    driver: snd_hda_intel v: kernel bus-ID: 00:01.1 chip-ID: 1002:9840
  Device-2: Advanced Micro Devices [AMD] FCH Azalia vendor: Dell
    driver: snd_hda_intel v: kernel bus-ID: 00:14.2 chip-ID: 1022:780d
  API: ALSA v: k6.12.4-100.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off with: a2jmidid status: off
  Server-2: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Dell driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 2000 bus-ID: 01:00.0 chip-ID: 10ec:8168
  IF: enp1s0 state: up speed: 1000 Mbps duplex: half mac: <filter>
  Device-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
    vendor: Dell driver: ath9k v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 05:00.0 chip-ID: 168c:0036
  IF: wlp5s0 state: down mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros AR9462 Bluetooth driver: btusb v: 0.8 type: USB
    rev: 1.1 speed: 12 Mb/s lanes: 1 bus-ID: 3-2:4 chip-ID: 0cf3:0036
  Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 4.1 lmp-v: 7
Drives:
  Local Storage: total: 223.58 GiB used: 120.69 GiB (54.0%)
  ID-1: /dev/sda vendor: Seagate model: WDC WDS240G2G0A-00JH30
    size: 223.58 GiB speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 221.95 GiB used: 120.32 GiB (54.2%) fs: btrfs dev: /dev/sda3
  ID-2: /boot size: 1004.8 MiB used: 365.2 MiB (36.3%) fs: ext4
    dev: /dev/sda2
  ID-3: /boot/efi size: 574.8 MiB used: 19.3 MiB (3.4%) fs: vfat
    dev: /dev/sda1
  ID-4: /home size: 221.95 GiB used: 120.32 GiB (54.2%) fs: btrfs
    dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 3.26 GiB used: 532.8 MiB (15.9%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 57.0 C mobo: 39.0 C gpu: radeon temp: 56.0 C
  Fan Speeds (rpm): cpu: 4022
Info:
  Memory: total: 4 GiB note: est. available: 3.26 GiB used: 1.81 GiB (55.6%)
  Processes: 259 Power: uptime: 48m wakeups: 0 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm Compilers: clang: 17 alt: 18
    gcc: 14.2.1 Shell: Bash v: 5.2.32 running-in: gnome-terminal inxi: 3.3.36
# /etc/fstab
# Created by anaconda on Mon Mar  1 08:45:46 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=339f5cfa-2f21-41dc-9131-e6c52da2b760 /                       btrfs   subvol=root,compress=zstd:1 0 0
UUID=6bbb2c9e-c3d8-4757-aafd-e3403264fe7c /boot                   ext4    defaults        1 2
UUID=F166-9C3C          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
UUID=339f5cfa-2f21-41dc-9131-e6c52da2b760 /home                   btrfs   subvol=home,compress=zstd:1 0 0
lsblk -f 
NAME   FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                            
├─sda1 vfat   FAT32        F166-9C3C                             555,5M     3% /boot/efi
├─sda2 ext4   1.0          6bbb2c9e-c3d8-4757-aafd-e3403264fe7c  570,8M    36% /boot
└─sda3 btrfs        fedy35 339f5cfa-2f21-41dc-9131-e6c52da2b760   99,5G    54% /home
                                                                               /
zram0                                                                          [SWAP]

This suggests there is a problem with /etc/fstab.
It will be worth checking that UUID etc match lsblk -f output.

Do you have a 6.11 kernel to boot from to compare?

1 Like

Unfortunately not. As i allready changed while I was on F40, the 6.11 kernels are gone. But as mentioned the boot entry from 6.12.4 F40 still works.

I attached id above. Looks good in my opinion.

With the F41 kernels I can just log into the rescue kernel while I do have there a /etc/fstab.empty file. I do not know if this is normal?

Did you happen to try the suggested line for extra information?
Does it actually boot or fail?

You might try adding the option nofail into the line for /boot/efi in the /etc/fstab file while booted into the f40 kernel. Then it should boot with the f41 kernel even if it fails to mount that file system. Once booted with the f41 kernel you could work on fixing whatever may be causing the failure.

Potentially it may be something in the initramfs image which is corrupt and causes this failure.

Having /boot/efi mounted after booting is not 100% mandatory, though it must be mounted for any changes in grub or kernels during updates.

While the error messages are different, couldn’t this still be connected to the recent failures to create initramfs for 6.12 kernels on certain F41 systems?

Running dracut for one of the F41 kernels doesn’t help?

Unit boot-efi.mount could not be found.
It boots in emergency mode … starting dracut-emergency, there I can login as root.

This I tried too but no success.

I think so.

Yes it happens while I was making an upgrade from F40 to F41, Now on the F41 kernels it just boots into the emergency mode alias dracut right?

If you refer to that System Updater Not Creating initramfs every time it updates the kernel that also not worked.

1 Like

I will test a meme-stick with Fedora 41 respin. There is the 6.12.4 kernel on it. If I can boot that then I am happy. Might be if I can create with this boot iso a new working initramfs ?!

You should be able to create a new initramfs with the latest installed kernel by booting to that latest spin USB then using a chroot environment.
Make sure all the proper partitions are mounted in the chroot then use dracut.
sudo dracut --force --kver <kernel version>
where you replace the <kernel version> in that command line with the desired kernel to be used in ‘uname -r’ format.

# chroot from live iso

1. su
2. mount -t btrfs -o subvol=root,compress=zstd:1 /dev/sda3 /mnt
3. for file in sys run proc dev ; do mount -o bind /$file /mnt/$file ; done
4. chroot /mnt
5. mount -a

dracut --force -kver vmlinuz-6.12.4-200.fc41.x86_64

[root@localhost-live mnt] # dracut --force -kver vmlinuz-6.12.4-200.fc41.x86_64
dracut[F]: The provided directory where to look for kernel modules (ver)
dracut[F]: does not match the kernel version set for the initramfs (6.12.4-200.fc41.x86_64).
dracut[F]: Set DRACUT_KMODDIR_OVERRIDE=1 to ignore this check.

It should write to /mnt/boot right? There I do have:

root@localhost-live:/mnt/boot# ls
config-6.12.4-100.fc40.x86_64                            memtest86+x64.efi
config-6.12.5-200.fc41.x86_64                            symvers-6.12.4-100.fc40.x86_64.xz
config-6.12.6-200.fc41.x86_64                            symvers-6.12.5-200.fc41.x86_64.xz
efi                                                      symvers-6.12.6-200.fc41.x86_64.xz
extlinux                                                 System.map-6.12.4-100.fc40.x86_64
grub2                                                    System.map-6.12.5-200.fc41.x86_64
initramfs-0-rescue-ebb3b20891124b978cab8c7e74dca732.img  System.map-6.12.6-200.fc41.x86_64
initramfs-6.12.4-100.fc40.x86_64.img                     vmlinuz-0-rescue-ebb3b20891124b978cab8c7e74dca732
initramfs-6.12.5-200.fc41.x86_64.img                     vmlinuz-6.12.4-100.fc40.x86_64
initramfs-6.12.6-200.fc41.x86_64.img                     vmlinuz-6.12.5-200.fc41.x86_64
loader                                                   vmlinuz-6.12.6-200.fc41.x86_64
lost+found

I just get the error above , about not finding a directory … do I have to specifier it?

You must use a valid kernel name. vmlinuz-6.12.4-200.fc41.x86_64 should be 6.12.4-200.fc41.x86_64

The kernel name is in the same format as returned by uname -r

Those 2 lines tell you that.

From the dracut man page

       A shortcut to generate the image at the default location for a specific kernel version is:

           # dracut --kver 2.6.40-1.rc5.f20

1 Like

That was a typing error … I tested also the other way:

root@localhost-live:/mnt# dracut --force -kver 6.12.4-200.fc41.x86_64
dracut[F]: The provided directory where to look for kernel modules (ver)
dracut[F]: does not match the kernel version set for the initramfs (6.12.4-200.>
dracut[F]: Set DRACUT_KMODDIR_OVERRIDE=1 to ignore this check.

root@localhost-live:/mnt# uname -a
Linux localhost-live 6.12.4-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec  9 2>
root@localhost-live:/mnt# ls
afs  boot  etc   lib    lost+found  mnt  proc  run   srv  tmp  var
bin  dev   home  lib64  media       opt  root  sbin  sys  usr
root@localhost-live:/mnt#

Same error.

Typo.

Should use --kver

Thanks for your time. It not gave a error anymore but also not copied something. At least I could not find it.

It should have created a new initramfs-6.12.4-200.fc41.x86_64.img file in /boot. What is the date on that file now that dracut has run.
ls -l /boot/initramfs*

As it was an old installation I decided to reinstall the machine.

Now it work, even old bugs I had with lightdm are solved now :grin:

Thanks to all for helping to find the issue.

1 Like