If you're having issues with the Unbreakable Enterprise Kernel (UEK) on Oracle Linux instances in Oracle Cloud Infrastructure, review the following information.
Instance fails to boot after updating to a new kernel version
When you update to the latest UEK Release 7 kernel, the console log shows the following error:
error: ../../grub-core/fs/fshelp.c:258:file `/initramfs-5.15.0-206.153.7.el8uek.x86_64.img' not found.
This error occurs because there wasn't enough space in /boot when the kernel was installed, the initramfs file either wasn't created, or it wasn't created properly. You can try booting into a previous kernel, checking for errors in the bootloader configuration (like GRUB), and verifying the integrity of the initramfs image.
To troubleshoot, recreate the initramfs image, remove unused kernels to free up space in the /bootdirectory, or do both.
Recreate the initramfs image 🔗
Follow the steps below to recreate the initramfs image.
Check to see if the initramfs file for the kernel that won't boot exists by running ls -l /boot/initramfs-*.img.
Copy
ls -l /boot/initramfs-*.img
-rw-------. 1 root root 90917795 Feb 12 19:33 /boot/initramfs-0-rescue-7063910fe2979258f8fd66f2fb8b8567.img
-rw-------. 1 root root 76584495 Mar 24 14:40 /boot/initramfs-4.18.0-553.40.1.el8_10.x86_64.img
-rw-------. 1 root root 90117038 Mar 24 23:51 /boot/initramfs-5.15.0-305.176.4.el8uek.x86_64.img
-rw-------. 1 root root 35099136 Mar 24 14:57 /boot/initramfs-5.15.0-305.176.4.el8uek.x86_64kdump.img
Tip
You can identify the Oracle Linux kernels by the el8uek in the initramfs image name: /boot/initramfs-5.15.0-305.176.4.el8uek.x86_64.img
Back up initramfs image for the updated kernel by copying it to a directory other than /boot. For example, to copy /boot/initramfs-5.15.0-305.176.4.el8uek.x86_64.img to the /root directory, run:
Clean up the /boot filesystem by removing old or unwanted kernels. For example, if you no longer need Red Hat Compatible Kernels (RHCK), they can be removed freeing up space /boot.
Check the available space in /boot.
Copy
df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 1014M 1006M 8.7M 100% /boot