Grubby Removed All kernel indexes, and rebooted, now not able to reboot. HELP!

So I am using Rocky Linux 9.3, and I accidentally removed all the kernels using grubby --remove-kernel and restarted the machine, how do I fix it? if rescue mode is an option, please help me out with tips to do it. I really need this to be fixed.

You will have to use a rocky 9 install disk to rescue your system by following the prompts to chroot mount the system. You will also need to find the device that contains /boot and mount that to root “/”. The tool to use to regenerate the entries is “kernel-install”. I spent some time figuring this out on Fedora a while back. Read this post linked below completely as early assumptions were clarified in later posts.
Regenerate BLS Entries

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.