No new Kernels in /boot Directory after Minor updates in Fedora33

No Kernels in /boot Directory after Minor updates in Fedora33

Hi,

since updating my Fedora System from 32 to 33 I can’t update the kernel anymore. However, the system claims to have three Kernel installed. Kernel 5.8.16 stays , even though there are newer kernels in place. After updating the system to 5.9.12 the Kernel 5.9.10 got removed, but the Kernel 5.8.16 remains curiously.

Installed Kernel Cores
[root@tux1980 entries]# rpm -qa | grep kernel-core
kernel-core-5.8.16-300.fc33.x86_64
kernel-core-5.9.11-200.fc33.x86_64
kernel-core-5.9.12-200.fc33.x86_64

uname -r >> 5.8.16-300.fc33.x86_64

So the system keeps booting from the old Kernel & however, in the /boot Directory I can’t see the freshly installed Kernels but I can see the initramfs Images. Weird…


Installed Kernels and initramfs in /boot

Also in the /boot/loader/entries Directory I can’t find any conf files related the the new kernel 5.9., onlky the conf file related to my actual booting kernel 5.8.16.

bootctl is not installed, only grub2.

Anyone have maybe any Idea what this could be?

Thanks!

1 Like

Post the output:

lsblk -o +FSTYPE,UUID; cat /etc/default/grub; \
grep -v -e ^# -e ^$ /etc/fstab; df -h /boot

Also try to regenerate the relevant configs/initramfs:
https://discussion.fedoraproject.org/t/boot-ends-in-dracut-emergency-shell-with-warning-that-root-device-does-not-exist/76299/6?u=vgaetera
And post that output as well.

Hi,

Output df -h /boot:

Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  976M  210M  700M  24% /boot

Output grep -v -e ^# -e ^$ /etc/fstab:

dev/mapper/fedora-root /                       ext4    defaults        1 1
UUID=7487e160-c50c-4f54-b2a5-af92b3576eb5 /boot                   ext4    defaults        1 2
UUID=B69A-0A2A          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
/dev/mapper/fedora-home /home                   ext4    defaults        1 2
/dev/nvme0n1p5          /daten/                 xfs     defaults        1 5
192.168.2.250:/multimedia /multimedia nfs defaults 0 0
192.168.2.250:/backup /backup nfs defaults 0 0

Output: lsblk -o +FSTYPE,UUID

NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT FSTYPE      UUID
sdb               8:16   1   3,6G  0 disk                        
└─sdb1            8:17   1   3,6G  0 part            vfat        EC70-23E6
sr0              11:0    1  1024M  0 rom                         
zram0           252:0    0     4G  0 disk [SWAP]                 
nvme0n1         259:0    0 953,9G  0 disk                        
├─nvme0n1p1     259:1    0   200M  0 part /boot/efi  vfat        B69A-0A2A
├─nvme0n1p2     259:2    0     1G  0 part /boot      ext4        7487e160-c50c-4f54-b2a5-af92b3576eb5
├─nvme0n1p3     259:3    0 237,3G  0 part            LVM2_member 75Htph-DKMj-Fvsc-O6bL-CuVw-fB0P-l21HCw
│ ├─fedora-root 253:0    0   100G  0 lvm  /          ext4        5c05832e-39b5-4580-a618-0ef8b6a006cb
│ ├─fedora-swap 253:1    0   7,8G  0 lvm             swap        b13ca290-aa35-4175-bbb3-992aa9c9a311
│ └─fedora-home 253:2    0 463,2G  0 lvm  /home      ext4        a2a9d9db-3e49-475c-ab79-fc6825a2898f
├─nvme0n1p4     259:4    0 333,7G  0 part            LVM2_member SniF5z-tDEZ-tO9s-vcma-kaEr-RLel-feD6rS
│ ├─fedora-root 253:0    0   100G  0 lvm  /          ext4        5c05832e-39b5-4580-a618-0ef8b6a006cb
│ └─fedora-home 253:2    0 463,2G  0 lvm  /home      ext4        a2a9d9db-3e49-475c-ab79-fc6825a2898f
└─nvme0n1p5     259:5    0 381,7G  0 part /daten     xfs         d4d21539-a868-4fb0-ac9e-c6d5f2a727a1

Output /etc/default/grub:

# 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
}

##terminal_output console
##if [ x$feature_timeout_style = xy ] ; then
##  set timeout_style=menu
##  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
##else
##  set timeout=5
##fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
set 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/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
##if [ x$feature_platform_search_hint = xy ]; then
##  search --no-floppy --fs-uuid --set=root  7487e160-c50c-4f54-b2a5-af92b3576eb5
##else
##  search --no-floppy --fs-uuid --set=root 7487e160-c50c-4f54-b2a5-af92b3576eb5
##fi
##insmod part_gpt
##insmod fat
##if [ x$feature_platform_search_hint = xy ]; then
##  search --no-floppy --fs-uuid --set=boot  B69A-0A2A
##else
##  search --no-floppy --fs-uuid --set=boot B69A-0A2A
##fi

# 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://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.

# 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-root ro rd.lvm.lv=fedora/root rhgb quiet ahci.mobile_lpm_policy=0 intel_pstate=disable "
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 then 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/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
##menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
##	fwsetup
##}
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
#GRUB_ENABLE_BLSCFG=false

When trying to generate the configs/initramfs I getting a error message that a modul is missing:

insmod: ERROR: could not load module blscfg

TA

1 Like

Looks wrong.
Restore the defaults:

sudo mv -f /etc/default/grub{,.bak}
sudo tee /etc/default/grub << "EOF" > /dev/null
GRUB_TIMEOUT=5
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/root rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
EOF

And regenerate the configs/initramfs once again.

2 Likes

Unbelievable… You just made my day:).

It is working now, OS boots with Kernel 5.9.12 as desired.

Thanks!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.