How to uncompress and list an initramfs content on Linux - Linux Tutorials - Learn Linux Configuration

Suppose we have our Linux system setup with an almost-full disk encryption, with only the /boot partition unencrypted. Assuming we achieved encryption by using a LUKS container, we need the appropriate software to unlock it at boot.

This is a companion discussion topic for the original entry at

On fedora you can just do:

lsinitrd --unpack <path-to-/boot/initramfs-*.img>