Posted on :: Updated on ::

Extract

xzcat initrd.img | cpio -id

-i extract
-d create dirs

Check content

# show content of initramfs of current kernel
lsinitrd

# show content of specific initramfs file
lsinitrd path/to/initramfs.img