How to regenerate initramfs and vmlinuz for rescue on RHEL 8 or later ?

Solution Verified - Updated -

Issue

  • How to regenerate initramfs-0-rescue-* and vmlinuz-0-rescue-* for rescue kernel after upgrading kernel.
  • How to add the rescue kernel title if it is missing in grub menus.
  • Unable to find /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh.

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • dracut-config-rescue

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content