How to fix update kernel for RHEL
If you encounter a Kernel Panic error on boot and are unable to log in, follow the steps below to resolve the issue.
Last updated
If you encounter a Kernel Panic error on boot and are unable to log in, follow the steps below to resolve the issue.
Last updated
# sudo -i
# lsblk
# mount /dev/sda3 /mnt/data
# cd /mnt/data
# mount --bind /proc /mnt/data/proc
# mount --bind /dev /mnt/data/dev
# mount --bind /sys /mnt/data/sys # chroot /mnt/data
# cd /boot
# ls -l - Make backup All .img file in /boot
# cp /boot/initramfs-<kernelVersion>.img /boot/initramfs-<kernelVersion>.img.bak - Build Initramfs All .img file in /boot
# dracut -f /boot/initramfs-<kernelVersion>.img <kernelVersion> - Reboot
# reboot # rpm -q kernel# sudo -i
# lsblk
# mount /dev/sda3 /mnt/data
# cd /mnt/data
# mount --bind /proc /mnt/data/proc
# mount --bind /dev /mnt/data/dev
# mount --bind /sys /mnt/data/sys # chroot /mnt/data- RHEL
# dnf list --installed kernel
# dnf list --installed kernel-modules
# dnf list --installed kernel-core
- Remove Kernel version
# dnf remove kernel-<Kernel-version>
# dnf remove kernel-modules-<Kernel-version>
# dnf remove kernel-core-<Kernel-version>- Reboot
#reboot