Fedora upgrade, dual boot etc

That really should not be working this way.

We know that newer kernels are installed, and that the 6.8.9 kernel is not the newest so it should not be shown as index 0.

Please also show the output of sudo grub2-editenv - list

There are other places that might show a clue.
Please run dnf list --installed kernel
and cat /etc/dnf/dnf.conf

1 Like
ugabrovec@office001:~$ sudo grub2-editenv - list
saved_entry=7cd83363145a47349230410c8c487648-6.8.9-100.fc38.x86_64
boot_success=1
boot_indeterminate=0
kernelopts=root=/dev/mapper/fedora_office001-root ro rd.lvm.lv=fedora_office001/root rd.lvm.lv=fedora_office001/swap rhgb quiet 
ugabrovec@office001:~$
ugabrovec@office001:~$ sudo dnf list --installed kernel
Installed packages
kernel.x86_64 6.8.9-100.fc38  updates
kernel.x86_64 6.13.4-100.fc40 updates
kernel.x86_64 6.13.4-200.fc41 updates
ugabrovec@office001:~$ 
ugabrovec@office001:~$ sudo cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
excludepkgs=libreoffice-kf5
ugabrovec@office001:~$ 

All those look right
What is the result of cat /etc/fedora-release and cat /etc/os-release

1 Like
ugabrovec@office001:~$ sudo cat /etc/fedora-release 
Fedora release 41 (Forty One)
ugabrovec@office001:~$ 

ugabrovec@office001:~$ sudo cat /etc/os-release
NAME="Fedora Linux"
VERSION="41 (Workstation Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=41
VERSION_CODENAME=""
PLATFORM_ID="platform:f41"
PRETTY_NAME="Fedora Linux 41 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:41"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f41/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=41
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=41
SUPPORT_END=2025-12-15
VARIANT="Workstation Edition"
VARIANT_ID=workstation
ugabrovec@office001:~$ 

Those also look correct.
Does your grub menu show the other kernels to be selected?

1 Like

You mean this?

It looks like that, only the Windows option is gone, that’s what we were working on… :slight_smile:

right as far as it goes.
This started with removing the windows partitions and gaining additional space for fedora.
Now it seems that for some reason grub is not being properly updated so it still shows the f38 entries and not showing the updates with the f40 & f41 kernels.

I believe we need to get a little more aggressive with grub.
show the result of cat /etc/default/grub

1 Like
ugabrovec@office001:~$ sudo cat /etc/default/grub
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
#GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora_office001/root rd.lvm.lv=fedora_office001/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG="true"
GRUB_DISABLE_LINUX_RECOVERY="true"
export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="white/black"
ugabrovec@office001:~$ 

I believe it was the same before that, when it was updated to F40 too, “but running on old kernel”…

1 Like

I suggest you make a backup copy of that file then edit the original and remove these 3 lines.

GRUB_DISABLE_LINUX_RECOVERY="true"
export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="white/black"

Following that edit then do the following.

  1. save a backup copy of /boot/grub2/grub.cfg so it can be compared with a newly created version.
  2. sudo rm /boot/efi/EFI/fedora/grub.cfg /boot/grub2/grub.cfg
  3. sudo dnf reinstall grub2-common (which should create new copies of both removed files)
  4. reboot and compare the boot options on the grub menu with what you have shown here in images. I expect it to show 3 kernels. One each for f41, f40, and f38. The one for f41 should be first in the list.

Nope, no changes, it’s still the same as the above image…

Lets look a bit closer at the files.
ls -l /boot
sudo ls -l /boot/loader/entries
sudo ls -l /boot/grub2
sudo ls -l /etc/grub.d

It seems that for some reason grub is not properly building the grub menu with BLSCFG as it should be doing, but instead is using an older fixed grub menu (possibly manually created).

1 Like

Add sudo cat /boot/grub2/grub.cfg to that list please

1 Like
ugabrovec@office001:~$ ls -l /boot
total 265560
drwxr-xr-x. 3 root root     4096 Nov  5  2017 520f44320ac640c68996d2e055036d31
-rw-r--r--  1 root root   258305 Aug 16  2023 config-6.4.11-200.fc38.x86_64
-rw-r--r--  1 root root   263692 Oct 10  2023 config-6.5.7-200.fc38.x86_64
-rw-r--r--  1 root root   272192 May  2  2024 config-6.8.9-100.fc38.x86_64
drwx------  6 root root     4096 Jan  1  1970 efi
drwxr-xr-x. 2 root root     4096 Feb 26 18:42 extlinux
drwx------. 4 root root     4096 Feb 27 22:37 grub2
-rw-------. 1 root root 70031146 Nov 18  2017 initramfs-0-rescue-7cd83363145a47349230410c8c487648.img
-rw-------  1 root root 40148156 Aug 24  2023 initramfs-6.4.11-200.fc38.x86_64.img
-rw-------  1 root root 40619240 Oct 21  2023 initramfs-6.5.7-200.fc38.x86_64.img
-rw-------  1 root root 41808800 Jul  3  2024 initramfs-6.8.9-100.fc38.x86_64.img
drwxr-xr-x. 3 root root     4096 Jul  9  2018 loader
drwx------. 2 root root    16384 Nov 18  2017 lost+found
-rw-r--r--  1 root root   148992 Jan  7  2024 memtest86+x64.efi
lrwxrwxrwx  1 root root       46 Aug 24  2023 symvers-6.4.11-200.fc38.x86_64.xz -> /lib/modules/6.4.11-200.fc38.x86_64/symvers.xz
lrwxrwxrwx  1 root root       45 Oct 21  2023 symvers-6.5.7-200.fc38.x86_64.xz -> /lib/modules/6.5.7-200.fc38.x86_64/symvers.xz
lrwxrwxrwx  1 root root       45 Jul  3  2024 symvers-6.8.9-100.fc38.x86_64.xz -> /lib/modules/6.8.9-100.fc38.x86_64/symvers.xz
-rw-------  1 root root  8549615 Aug 16  2023 System.map-6.4.11-200.fc38.x86_64
-rw-------  1 root root  8696924 Oct 10  2023 System.map-6.5.7-200.fc38.x86_64
-rw-r--r--  1 root root  9021531 May  2  2024 System.map-6.8.9-100.fc38.x86_64
-rwxr-xr-x. 1 root root  7475288 Nov 18  2017 vmlinuz-0-rescue-7cd83363145a47349230410c8c487648
-rwxr-xr-x  1 root root 14376872 Aug 16  2023 vmlinuz-6.4.11-200.fc38.x86_64
-rwxr-xr-x  1 root root 14541512 Oct 10  2023 vmlinuz-6.5.7-200.fc38.x86_64
-rwxr-xr-x  1 root root 15646536 May  2  2024 vmlinuz-6.8.9-100.fc38.x86_64
ugabrovec@office001:~$ 
ugabrovec@office001:~$ sudo ls -l /boot/loader/entries
total 20
-rw-r--r-- 1 root root 155 Feb 27 22:33 7cd83363145a47349230410c8c487648-0-memtest86+.conf
-rw-r--r-- 1 root root 498 Feb 27 22:33 7cd83363145a47349230410c8c487648-0-rescue.conf
-rw-r--r-- 1 root root 374 Feb 27 22:33 7cd83363145a47349230410c8c487648-6.4.11-200.fc38.x86_64.conf
-rw-r--r-- 1 root root 370 Feb 27 22:33 7cd83363145a47349230410c8c487648-6.5.7-200.fc38.x86_64.conf
-rw-r--r-- 1 root root 370 Feb 27 22:33 7cd83363145a47349230410c8c487648-6.8.9-100.fc38.x86_64.conf
ugabrovec@office001:~$ 
ugabrovec@office001:~$ sudo ls -l /boot/grub2
total 548
drwx------  2 root root   4096 Feb 26 18:51 fonts
-rw-------  1 root root   7662 Feb 27 22:33 grub.cfg
-rw-------  1 root root   1024 Feb 27 22:37 grubenv
-rw-r--r--  1 root root   8887 Jul 16  2021 NeueMontrealMedium.pf2
drwxr-xr-x. 3 root root   4096 Nov  5  2017 themes
-rwxr-xr-x  1 root root 524897 Jul 16  2021 wallpaper-lockscreen.jpg
ugabrovec@office001:~$ 
ugabrovec@office001:~$ sudo ls -l /etc/grub.d
total 120
-rwxr-xr-x 1 root root  9380 Nov 21 01:00 00_header
-rwxr-xr-x 1 root root  1100 Feb  3 01:00 00_tuned
-rwxr-xr-x 1 root root   236 Nov 21 01:00 01_users
-rwxr-xr-x 1 root root   270 Jul 16  2021 06_grub-customizer_menu_color_helper
-rwxr-xr-x 1 root root   835 Nov 21 01:00 08_fallback_counting
-rwxr-xr-x 1 root root 19875 Nov 21 01:00 10_linux
-rwxr-xr-x 1 root root   833 Nov 21 01:00 10_reset_boot_success
-rwxr-xr-x 1 root root   892 Nov 21 01:00 12_menu_auto_hide
-rwxr-xr-x 1 root root   410 Nov 21 01:00 14_menu_show_once
-rwxr-xr-x 1 root root 14627 Nov 21 01:00 20_linux_xen
-rwxr-xr-x 1 root root  2562 Nov 21 01:00 20_ppc_terminfo
-rwxr-xr-x 1 root root   869 Nov 21 01:00 25_bli
-rwxr-xr-x 1 root root 11006 Nov 21 01:00 30_os-prober
-rwxr-xr-x 1 root root  1166 Nov 21 01:00 30_uefi-firmware
-rwxr-xr-x 1 root root   725 Jan 28 01:00 35_fwupd
-rwxr-xr-x 1 root root   218 Nov 21 01:00 40_custom
-rwxr-xr-x 1 root root   219 Nov 21 01:00 41_custom
drwxr-xr-x 4 root root  4096 Jul 16  2021 backup
-rw-r--r-- 1 root root   483 Nov 21 01:00 README
ugabrovec@office001:~$ 
ugabrovec@office001:~$ sudo cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod part_gpt
insmod lvm
insmod ext2
set root='lvmid/kg3ReK-vKLb-GVW9-jzdz-qXcQ-zxL0-bXtQOM/2XBEMu-Ml6s-hQfQ-HtGL-fUSn-cQke-6VcaTu'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/kg3ReK-vKLb-GVW9-jzdz-qXcQ-zxL0-bXtQOM/2XBEMu-Ml6s-hQfQ-HtGL-fUSn-cQke-6VcaTu'  552b71fa-865d-4283-a5be-4e9ad7bb3c9e
else
  search --no-floppy --fs-uuid --set=root 552b71fa-865d-4283-a5be-4e9ad7bb3c9e
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_DK
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
export tuned_params
set tuned_initrd=""
export tuned_initrd
### END /etc/grub.d/00_tuned ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
### END /etc/grub.d/06_grub-customizer_menu_color_helper ###

### BEGIN /etc/grub.d/08_fallback_counting ###
insmod increment
# Check if boot_counter exists and boot_success=0 to activate this behaviour.
if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
  # if countdown has ended, choose to boot rollback deployment,
  # i.e. default=1 on OSTree-based systems.
  if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
    set default=1
    set boot_counter=-1
  # otherwise decrement boot_counter
  else
    decrement boot_counter
  fi
  save_env boot_counter
fi
### END /etc/grub.d/08_fallback_counting ###

### BEGIN /etc/grub.d/10_linux ###
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 076b21f9-8d72-4c0e-853b-20f3863b512b
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=boot 8E51-41FD

# This section was generated by a script. Do not modify the generated file - all changes
# will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
#
# The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
# populates the boot menu. Please refer to the Boot Loader Specification documentation
# for the files format: https://systemd.io/BOOT_LOADER_SPECIFICATION/.

# The kernelopts variable should be defined in the grubenv file. But to ensure that menu
# entries populated from BootLoaderSpec files that use this variable work correctly even
# without a grubenv file, define a fallback kernelopts variable if this has not been set.
#
# The kernelopts variable in the grubenv file can be modified using the grubby tool or by
# executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX
# and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both
# the kernelopts variable in the grubenv file and the fallback kernelopts variable.
if [ -z "${kernelopts}" ]; then
  set kernelopts="root=/dev/mapper/fedora_office001-root ro rd.lvm.lv=fedora_office001/root rd.lvm.lv=fedora_office001/swap rhgb quiet "
fi

insmod blscfg
blscfg
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_reset_boot_success ###
# Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  set menu_hide_ok=1
else
  set menu_hide_ok=0 
fi
# Reset boot_indeterminate after a successful boot
if [ "${boot_success}" = "1" ] ; then
  set boot_indeterminate=0
# Avoid boot_indeterminate causing the menu to be hidden more than once
elif [ "${boot_indeterminate}" = "1" ]; then
  set boot_indeterminate=2
fi
# Reset boot_success for current boot 
set boot_success=0
save_env boot_success boot_indeterminate
### END /etc/grub.d/10_reset_boot_success ###

### BEGIN /etc/grub.d/12_menu_auto_hide ###
if [ x$feature_timeout_style = xy ] ; then
  if [ "${menu_show_once}" ]; then
    unset menu_show_once
    save_env menu_show_once
    set timeout_style=menu
    set timeout=60
  elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
    set orig_timeout_style=${timeout_style}
    set orig_timeout=${timeout}
    if [ "${fastboot}" = "1" ]; then
      # timeout_style=menu + timeout=0 avoids the countdown code keypress check
      set timeout_style=menu
      set timeout=0
    else
      set timeout_style=hidden
      set timeout=1
    fi
  fi
fi
### END /etc/grub.d/12_menu_auto_hide ###

### BEGIN /etc/grub.d/14_menu_show_once ###
if [ x$feature_timeout_style = xy ]; then
  if [ "${menu_show_once_timeout}" ]; then
    set timeout_style=menu
    set timeout="${menu_show_once_timeout}"
    unset menu_show_once_timeout
    save_env menu_show_once_timeout
  fi
fi
### END /etc/grub.d/14_menu_show_once ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
        if [ ! insmod bli ]; then
                echo "bli module not available"
        fi
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        if [ fwsetup --is-supported ]; then
                menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
                        fwsetup
                }
        fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
ugabrovec@office001:~$ 

This is disturbing.
You only have the actual kernel files related to f38, even though

this shows the newer kernels installed.
Apparently something got messed up with the update to f40 and carried over to f41.

The grub menu would seem correct with those files still installed.

Try rpm -qa | grep kernel so we may see if the older kernels show as properly installed or not.

Also do dnf list --installed kernel* for comparison.

1 Like
ugabrovec@office001:~$ rpm -qa | grep kernel 
kernel-modules-core-6.8.9-100.fc38.x86_64
kernel-core-6.8.9-100.fc38.x86_64
kernel-modules-6.8.9-100.fc38.x86_64
kernel-6.8.9-100.fc38.x86_64
kernel-modules-extra-6.8.9-100.fc38.x86_64
kernel-modules-core-6.13.4-100.fc40.x86_64
kernel-core-6.13.4-100.fc40.x86_64
kernel-modules-6.13.4-100.fc40.x86_64
kernel-6.13.4-100.fc40.x86_64
kernel-modules-extra-6.13.4-100.fc40.x86_64
kernel-headers-6.13.3-200.fc41.x86_64
kernel-tools-libs-6.13.4-200.fc41.x86_64
kernel-srpm-macros-1.0-24.fc41.noarch
kernel-modules-core-6.13.4-200.fc41.x86_64
kernel-core-6.13.4-200.fc41.x86_64
kernel-modules-6.13.4-200.fc41.x86_64
kernel-6.13.4-200.fc41.x86_64
kernel-modules-extra-6.13.4-200.fc41.x86_64
libreport-plugin-kerneloops-2.17.15-3.fc41.x86_64
kernel-tools-6.13.4-200.fc41.x86_64
abrt-addon-kerneloops-2.17.6-3.fc41.x86_64
ugabrovec@office001:~$ 
ugabrovec@office001:~$ dnf list --installed kernel*
Installed packages
kernel.x86_64               6.8.9-100.fc38  updates
kernel.x86_64               6.13.4-100.fc40 updates
kernel.x86_64               6.13.4-200.fc41 updates
kernel-core.x86_64          6.8.9-100.fc38  updates
kernel-core.x86_64          6.13.4-100.fc40 updates
kernel-core.x86_64          6.13.4-200.fc41 updates
kernel-headers.x86_64       6.13.3-200.fc41 updates
kernel-modules.x86_64       6.8.9-100.fc38  updates
kernel-modules.x86_64       6.13.4-100.fc40 updates
kernel-modules.x86_64       6.13.4-200.fc41 updates
kernel-modules-core.x86_64  6.8.9-100.fc38  updates
kernel-modules-core.x86_64  6.13.4-100.fc40 updates
kernel-modules-core.x86_64  6.13.4-200.fc41 updates
kernel-modules-extra.x86_64 6.8.9-100.fc38  updates
kernel-modules-extra.x86_64 6.13.4-100.fc40 updates
kernel-modules-extra.x86_64 6.13.4-200.fc41 updates
kernel-srpm-macros.noarch   1.0-24.fc41     fedora
kernel-tools.x86_64         6.13.4-200.fc41 updates
kernel-tools-libs.x86_64    6.13.4-200.fc41 updates
ugabrovec@office001:~$ 

Stranger and stranger with files in /boot/loader/entries matching those in /boot/
At the same time rpm and dnf both show the newer kernels installed.

We cannot use either rpm or dnf to remove the older kernel files since the packages do not show as installed in either. However you can use the manual method to remove the very oldest kernel.

  1. Edit /etc/dnf/dnf.conf and change the installonly_limit to 6.
  2. sudo dnf remove /boot/*6.4.11* /boot/loader/entries/*6.4.11*
  3. run dnf remove kernel*6.13.4* followed by dnf upgrade --refresh to see if we can get the newer kernel files into /boot and /boot/loader/entries.
1 Like

produces the following output:

ugabrovec@office001:~$ sudo dnf remove /boot/*6.4.11* /boot/loader/entries/*6.4.11*
No packages to remove for argument: /boot/config-6.4.11-200.fc38.x86_64
No packages to remove for argument: /boot/initramfs-6.4.11-200.fc38.x86_64.img
No packages to remove for argument: /boot/symvers-6.4.11-200.fc38.x86_64.xz
No packages to remove for argument: /boot/System.map-6.4.11-200.fc38.x86_64
No packages to remove for argument: /boot/vmlinuz-6.4.11-200.fc38.x86_64
No packages to remove for argument: /boot/loader/entries/*6.4.11*

Nothing to do.
ugabrovec@office001:~$ 

I did not proceed with the 3rd step of your instruction.

I goofed.

I already knew the packages were not installed so that should have been

  1. switch to root sudo su
  2. remove the files rm /boot/*6.4.11* /boot/loader/entries/*6.4.11*
  3. exit from su

then do the next step using sudo with those commands in step 3.

If you already edited /etc/dnf/dnf.conf then step 2 would not have been immediately necessary because the install limit should have allowed step 3 to complete properly

1 Like
ugabrovec@office001:~$ sudo dnf upgrade --refresh
Updating and loading repositories:
 RPM Fusion for Fedora 41 - Free - Updates                                                                                                                                                          100% |  70.0 KiB/s |   8.5 KiB |  00m00s
 Fedora 41 openh264 (From Cisco) - x86_64                                                                                                                                                           100% |   1.0 KiB/s | 989.0   B |  00m01s
 created by dnf config-manager from https://brave-browser-rpm-release.s3.brave.com/x86_64/                                                                                                          100% |  18.8 KiB/s |   2.0 KiB |  00m00s
 google-chrome                                                                                                                                                                                      100% |  12.1 KiB/s |   1.3 KiB |  00m00s
 Visual Studio Code                                                                                                                                                                                 100% |  11.2 KiB/s |   1.5 KiB |  00m00s
 RPM Fusion for Fedora 41 - Free                                                                                                                                                                    100% |  19.1 KiB/s |   8.9 KiB |  00m00s
 Remi's Modular repository - Fedora 41 - x86_64                                                                                                                                                     100% |   5.6 KiB/s |   5.2 KiB |  00m01s
 Fedora 41 - x86_64 - Updates                                                                                                                                                                       100% | 211.8 KiB/s |  22.7 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - Updates                                                                                                                                                       100% |  93.5 KiB/s |   9.1 KiB |  00m00s
 google-earth-pro                                                                                                                                                                                   100% |  24.1 KiB/s |   1.3 KiB |  00m00s
 Remi's RPM repository - Fedora 41 - x86_64                                                                                                                                                         100% |  27.8 KiB/s |   4.7 KiB |  00m00s
 Fedora 41 - x86_64                                                                                                                                                                                 100% |  32.2 KiB/s |  26.8 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree                                                                                                                                                                 100% |  20.2 KiB/s |   9.5 KiB |  00m00s
 google-chrome                                                                                                                                                                                      100% |  16.2 KiB/s |   3.2 KiB |  00m00s
 Visual Studio Code                                                                                                                                                                                 100% | 458.5 KiB/s |  89.4 KiB |  00m00s
 Remi's Modular repository - Fedora 41 - x86_64                                                                                                                                                     100% | 335.4 KiB/s | 225.7 KiB |  00m01s
 Remi's RPM repository - Fedora 41 - x86_64                                                                                                                                                         100% |   1.4 MiB/s | 423.4 KiB |  00m00s
Repositories loaded.
Problem: installed package noopenh264-0.1.0~openh264_2.4.1-2.fc41.i686 conflicts with openh264 provided by openh264-2.4.1-2.fc41.x86_64 from fedora-cisco-openh264
  - package openh264-2.4.1-2.fc41.x86_64 from fedora-cisco-openh264 obsoletes noopenh264 < 1:0 provided by noopenh264-0.1.0~openh264_2.4.1-2.fc41.i686 from @System
  - cannot install the best update candidate for package noopenh264-0.1.0~openh264_2.4.1-2.fc41.i686
  - cannot install the best update candidate for package noopenh264-0.1.0~openh264_2.4.1-2.fc41.x86_64

Package                                                                          Arch              Version                                                                          Repository                                          Size
Upgrading:
 mtools                                                                          x86_64            4.0.48-1.fc41                                                                    updates                                        358.8 KiB
   replacing mtools                                                              x86_64            4.0.47-1.fc41                                                                    updates                                        351.9 KiB
 openxr-libs                                                                     x86_64            1.1.45-1.fc41                                                                    updates                                        260.5 KiB
   replacing openxr-libs                                                         x86_64            1.1.43-1.fc41                                                                    updates                                        260.5 KiB
 rpm-ostree-libs                                                                 x86_64            2025.5-2.fc41                                                                    updates                                         54.1 KiB
   replacing rpm-ostree-libs                                                     x86_64            2024.9-1.fc41                                                                    updates                                         51.3 KiB
Installing:
 kernel                                                                          x86_64            6.13.4-200.fc41                                                                  updates                                          0.0   B
 kernel-core                                                                     x86_64            6.13.4-200.fc41                                                                  updates                                         73.9 MiB
 kernel-modules                                                                  x86_64            6.13.4-200.fc41                                                                  updates                                         63.4 MiB
 kernel-modules-core                                                             x86_64            6.13.4-200.fc41                                                                  updates                                         37.4 MiB
 kernel-modules-extra                                                            x86_64            6.13.4-200.fc41                                                                  updates                                          2.7 MiB
Skipping packages with conflicts:
 openh264                                                                        x86_64            2.4.1-2.fc41                                                                     fedora-cisco-openh264                            1.1 MiB

Transaction Summary:
 Installing:         5 packages
 Upgrading:          3 packages
 Replacing:          3 packages
 Skipping:           1 package

Total size of inbound packages is 126 MiB. Need to download 126 MiB.
After this operation, 177 MiB extra will be used (install 178 MiB, remove 664 KiB).
Is this ok [y/N]: y
[1/8] kernel-0:6.13.4-200.fc41.x86_64                                                                                                                                                               100% |   1.1 MiB/s | 195.8 KiB |  00m00s
[2/8] kernel-core-0:6.13.4-200.fc41.x86_64                                                                                                                                                          100% |  23.2 MiB/s |  18.4 MiB |  00m01s
[3/8] kernel-modules-extra-0:6.13.4-200.fc41.x86_64                                                                                                                                                 100% |  15.1 MiB/s |   2.9 MiB |  00m00s
[4/8] openxr-libs-0:1.1.45-1.fc41.x86_64                                                                                                                                                            100% | 765.7 KiB/s | 108.7 KiB |  00m00s
[5/8] rpm-ostree-libs-0:2025.5-2.fc41.x86_64                                                                                                                                                        100% | 225.5 KiB/s |  47.1 KiB |  00m00s
[6/8] kernel-modules-core-0:6.13.4-200.fc41.x86_64                                                                                                                                                  100% |  27.0 MiB/s |  38.7 MiB |  00m01s
[7/8] mtools-0:4.0.48-1.fc41.x86_64                                                                                                                                                                 100% | 811.7 KiB/s | 221.6 KiB |  00m00s
[8/8] kernel-modules-0:6.13.4-200.fc41.x86_64                                                                                                                                                       100% |  31.7 MiB/s |  65.2 MiB |  00m02s
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[8/8] Total                                                                                                                                                                                         100% |  56.3 MiB/s | 125.8 MiB |  00m02s
Running transaction
[ 1/13] Verify package files                                                                                                                                                                        100% |  11.0   B/s |   8.0   B |  00m01s
[ 2/13] Prepare transaction                                                                                                                                                                         100% |  10.0   B/s |  11.0   B |  00m01s
[ 3/13] Installing kernel-modules-core-0:6.13.4-200.fc41.x86_64                                                                                                                                     100% |  39.0 MiB/s |  37.9 MiB |  00m01s
[ 4/13] Installing kernel-core-0:6.13.4-200.fc41.x86_64                                                                                                                                             100% |  69.8 MiB/s |  27.0 MiB |  00m00s
[ 5/13] Installing kernel-modules-0:6.13.4-200.fc41.x86_64                                                                                                                                          100% |  11.0 MiB/s |  63.9 MiB |  00m06s
[ 6/13] Installing kernel-0:6.13.4-200.fc41.x86_64                                                                                                                                                  100% |   5.5 KiB/s | 124.0   B |  00m00s
[ 7/13] Installing kernel-modules-extra-0:6.13.4-200.fc41.x86_64                                                                                                                                    100% | 539.7 KiB/s |   2.7 MiB |  00m05s
[ 8/13] Upgrading mtools-0:4.0.48-1.fc41.x86_64                                                                                                                                                     100% |  27.7 MiB/s | 368.8 KiB |  00m00s
[ 9/13] Upgrading rpm-ostree-libs-0:2025.5-2.fc41.x86_64                                                                                                                                            100% |   4.9 MiB/s |  55.5 KiB |  00m00s
[10/13] Upgrading openxr-libs-0:1.1.45-1.fc41.x86_64                                                                                                                                                100% |  17.0 MiB/s | 261.3 KiB |  00m00s
[11/13] Removing mtools-0:4.0.47-1.fc41.x86_64                                                                                                                                                      100% |   5.1 KiB/s |  73.0   B |  00m00s
[12/13] Removing rpm-ostree-libs-0:2024.9-1.fc41.x86_64                                                                                                                                             100% | 642.0   B/s |   9.0   B |  00m00s
[13/13] Removing openxr-libs-0:1.1.43-1.fc41.x86_64                                                                                                                                                 100% |   0.0   B/s |   5.0   B |  00m37s
>>> Running post-transaction scriptlet: kernel-core-0:6.13.4-200.fc41.x86_64                                                                                                                                                                
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.13.4-200.fc41.x86_64                                                                                                                                                  
>>> Scriptlet output:                                                                                                                                                                                                                       
>>> /usr/lib/kernel/install.d/51-dracut-rescue.install: line 91: /boot/efi/loader/entries/7cd83363145a47349230410c8c487648-0-rescue.conf: No such file or directory                                                                         
>>> /usr/lib/kernel/install.d/51-dracut-rescue.install failed with exit status 1.                                                                                                                                                           
>>>                                                                                                                                                                                                                                         
>>> [RPM] %posttrans(kernel-core-6.13.4-200.fc41.x86_64) scriptlet failed, exit status 1                                                                                                                                                    
Complete!
ugabrovec@office001:~$ 

I did not reboot after that.

This appears to be a dracut bug. or a postinstall script bug.
The path is incorrect in that error message. It should be /boot/loader/entries and not /boot/efi/loader/entries.

What dracut version is installed? dnf list --installed dracut
Mine is

$ dnf list --installed dracut
Installed packages
dracut.x86_64 103-3.fc41 updates

What is now seen with ls /boot and ls /boot/loader/entries

2 Likes