π ~1 min read
Table of contents
Symptom & Impact
Security and performance improvements are not applied because host boots older kernel.
Environment & Reproduction
Seen after successful dnf kernel update and reboot.
dnf list installed kernel
uname -r
Root Cause Analysis
GRUB default entry points to previous kernel index or saved entry mismatch.
Quick Triage
List current default kernel and available boot entries.
grubby --default-kernel
grubby --info=ALL | grep -E 'index=|kernel='
Step-by-Step Diagnosis
Inspect grubenv and kernel package post-install scripts.
cat /boot/grub2/grubenv
rpm -q --last kernel

Solution – Primary Fix
Set latest kernel as default and regenerate grub config if needed.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo grubby --set-default /boot/vmlinuz-$(rpm -q --qf '%{VERSION}-%{RELEASE}.%{ARCH}
' kernel | head -n1)
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Solution – Alternative Approaches
Pin known-good kernel intentionally in highly controlled environments.
Verification & Acceptance Criteria
After reboot, running kernel matches latest installed version.
reboot
uname -r
Rollback Plan
Select previous kernel from GRUB menu or set old default explicitly.
sudo grubby --set-default /boot/vmlinuz-
Prevention & Hardening
Monitor kernel drift and alert when running kernel lags behind installed baseline.
Automate patch management and compliance across your fleet with our DevOps services.
Related Errors & Cross-Refs
Related to failed initramfs generation and incomplete posttrans scriptlets.
Related tutorial: View the step-by-step tutorial for oracle-linux-10.
View all oracle-linux-10 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
RHEL kernel lifecycle and grubby usage documentation.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.