📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

`dnf upgrade` fails during kernel transaction with no space left on device for /boot.

Environment & Reproduction

Run `df -h /boot` and `rpm -q kernel` to assess free space and installed kernel count.

Root Cause Analysis

Inspect transaction history with `dnf history` and identify incomplete kernel installs.

Quick Triage

Ensure bootloader tools and system maintenance units are healthy before cleanup.

Step-by-Step Diagnosis

Use `journalctl -b | grep -i kernel` and `journalctl -b | grep -i dnf` for transaction failures.

Illustrative mockup for rhel-9 — rhel9-b01-p11-boot-usage.webp
Checking /boot usage and installed kernel packages — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Remove obsolete kernels with `dnf remove –oldinstallonly –setopt installonly_limit=2 kernel`.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for rhel-9 — rhel9-b01-p11-remove-old-kernels.webp
Removing old kernels safely to free /boot space — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Firewall settings are unrelated, but maintain standard host policy during maintenance windows.

Verification & Acceptance Criteria

SELinux typically does not block kernel package operations on default policy.

Rollback Plan

Install latest kernel, reboot, and confirm target kernel with `uname -r`.

Prevention & Hardening

Set appropriate `installonly_limit` in dnf configuration for small boot partitions.

Keep at least one known-good previous kernel entry in GRUB for fallback.

Related tutorial: View the step-by-step tutorial for rhel-9.

View all rhel-9 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Review RHEL package lifecycle and kernel retention recommendations.

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.