How to view the contents of a file within an initramfs Image

Solution Verified - Updated -

Issue

  • How do I view the contents of a specific file within an initramfs image for a normal kernel or kdump kernel?
  • Some kernel parameters do not show their expected values after an OS boot, even though /etc/sysctl.conf appears to contain default settings.

Environment

  • Red Hat Enterprise Linux 7, 8, 9, 10
  • dracut
  • lsinitrd

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