Simulated: keep the server on the last good kernel
Practitioner10 minSimulated terminalRHEL family
Objective
The working kernel is the persistent default, and you know why the new one panicked.
Requirements
- Runs in the simulated terminal below. You already picked the old kernel at the GRUB menu.
Steps
- Confirm the running kernel and list the installed ones.
- Find out why the newest kernel could not mount root.
- Make the running kernel the default with grubby and verify it.
The simulated terminal needs JavaScript.
Not solved yet. Fix the problem, then run the verification commands.
This is a simulation in your browser. It accepts the common forms of each command. The output imitates a real server.
Verification
grubby --default-kernelShow the solution
uname -r
rpm -q kernel
ls -lh /boot/initramfs-*
df -h /boot
grubby --set-default /boot/vmlinuz-5.14.0-427.42.1.el9_4.x86_64
grubby --default-kernelUse the version that uname -r printed. The newest initramfs is 0 bytes and /boot is full: the image was never written. Free space in /boot, rebuild it with dracut -f --kver, and only then move the default back.