The vi binary is missing in the initrd.img of Red Hat Enterprise Linux 9.0

Solution Verified - Updated -

Issue

  • The vi command cannot work in the initial ram image generated by dracut.
  • It happens with initrd.img for the installation and the initramfs-*.img generated during and after the installation.
  • /usr/bin/vi is just a wrapper shell script to run /usr/libexec/vi.
  • /usr/bin/vi is available in the initial ram image, but /usr/libexec/vi is not.

Environment

Red Hat Enterprise Linux 9.0

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