View Issue Details

IDProjectCategoryView StatusLast Update
0000172AlmaLinux-8dnfpublic2022-01-06 06:17
Reporterkfujinaga Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformXenServerOSAlmaLinuxOS Version8.5
Summary0000172: Did not update grub.cfg automatically after kernel update in AlmaLinux 8.5
DescriptionIn the AlmaLinux 8.5 enviroment created from 8.5 install media, I executed "dnf upgrade".
In this action, new kernel "4.18.0-348.7.1.el8_5.x86_64" was installed.
But /boot/grub2/grub.cfg was not updated.

If I execute "grub2-mkconfig -o /boot/grub2/grub.cfg" manually, boot/grub2/grub.cfg is updated.

I can not find this problem in AlmaLinux 8.4,
Steps To Reproduce1. Install AlmaLinux 8.5 (AlmaLinux-8.5-x86_64-dvd.iso, Server(GUI) mode)
2. Check kernel version

# uname -r
4.18.0-348.el8.x86_64
# rpm -qa |grep kernel |sort
kernel-4.18.0-348.el8.x86_64
kernel-core-4.18.0-348.el8.x86_64
kernel-modules-4.18.0-348.el8.x86_64
kernel-tools-4.18.0-348.el8.x86_64
kernel-tools-libs-4.18.0-348.el8.x86_64

2. Check boot settings.

(grubby)
# grubby --info=ALL | grep -E "^kernel|^index"
index=0
kernel="/boot/vmlinuz-4.18.0-348.el8.x86_64"
index=1
kernel="/boot/vmlinuz-0-rescue-f2cfcd79b1db49188a987dffe9c4ee73"

(grub.cfg)
# grep "^menuentry" /boot/grub2/grub.cfg
menuentry 'AlmaLinux (4.18.0-348.el8.x86_64) 8.5 (Arctic Sphynx)' --class almalinux --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.18.0-348.el8.x86_64-advanced-9a24da02-c767-4dad-a0f4-05bbd22909c7' {
menuentry 'AlmaLinux (0-rescue-f2cfcd79b1db49188a987dffe9c4ee73) 8.5 (Arctic Sphynx)' --class almalinux --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-f2cfcd79b1db49188a987dffe9c4ee73-advanced-9a24da02-c767-4dad-a0f4-05bbd22909c7' {

4. system update (kernel "4.18.0-348.7.1.el8_5.x86_64" was installed)

Update all packages.

# dnf upgrade

5. check kernel verson

kernel 4.18.0-348.7.1.el8_5.x86_64 was installed.

# uname -r
4.18.0-348.el8.x86_64
# rpm -qa |grep kernel |sort
kernel-4.18.0-348.7.1.el8_5.x86_64
kernel-4.18.0-348.el8.x86_64
kernel-core-4.18.0-348.7.1.el8_5.x86_64
kernel-core-4.18.0-348.el8.x86_64
kernel-modules-4.18.0-348.7.1.el8_5.x86_64
kernel-modules-4.18.0-348.el8.x86_64
kernel-tools-4.18.0-348.7.1.el8_5.x86_64
kernel-tools-libs-4.18.0-348.7.1.el8_5.x86_64

6. Check boot settings.
gubby return new setting, but grub.conf was not updated.

(grubby)
# grubby --info=ALL | grep -E "^kernel|^index"
index=0
kernel="/boot/vmlinuz-4.18.0-348.7.1.el8_5.x86_64"
index=1
kernel="/boot/vmlinuz-4.18.0-348.el8.x86_64"
index=2
kernel="/boot/vmlinuz-0-rescue-f2cfcd79b1db49188a987dffe9c4ee73"

(grub.cfg)
# grep "^menuentry" /boot/grub2/grub.cfg
menuentry 'AlmaLinux (4.18.0-348.el8.x86_64) 8.5 (Arctic Sphynx)' --class almalinux --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.18.0-348.el8.x86_64-advanced-9a24da02-c767-4dad-a0f4-05bbd22909c7' {
menuentry 'AlmaLinux (0-rescue-f2cfcd79b1db49188a987dffe9c4ee73) 8.5 (Arctic Sphynx)' --class almalinux --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-f2cfcd79b1db49188a987dffe9c4ee73-advanced-9a24da02-c767-4dad-a0f4-05bbd22909c7' {

7. Reboot.

# reboot

8. Check booted kernel version

Old kernel was booted.

# uname -r
4.18.0-348.el8.x86_64
TagsNo tags attached.
abrt_hash
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-01-06 06:17 kfujinaga New Issue