📖 ~1 min read
Table of contents
Symptom & Impact
BLS entries vanish after kernel install
Environment & Reproduction
grubby fails because /boot/loader/entries is missing or unwritable.
Root Cause Analysis
kernel-install hook cannot create BLS entry due to missing directory or SELinux.
Quick Triage
Check ls /boot/loader/entries and journalctl -u kernel-install.
Step-by-Step Diagnosis
Run: rpm -qa kernel; sudo grubby –info=ALL; ls /boot/loader/entries.

Solution – Primary Fix
sudo mkdir -p /boot/loader/entries; sudo dnf reinstall kernel-core; sudo grub2-mkconfig -o /boot/grub2/grub.cfg.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Switch back to grub.cfg-only entries by setting GRUB_ENABLE_BLSCFG=false then regenerating config.
Verification & Acceptance Criteria
After reboot, grubby –default-kernel returns the newest kernel and the menu lists it.
Rollback Plan
Boot from previous kernel via grub menu and rerun grub2-mkconfig.
Prevention & Hardening
Protect /boot/loader/entries permissions and exclude from automated cleanup scripts.
Related Errors & Cross-Refs
Pairs with rescue-mode prompts and missing initramfs warnings.
Related tutorial: View the step-by-step tutorial for centos-stream-9.
View all centos-stream-9 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
BootLoaderSpec docs and grubby(8).
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.