LinuxCommandLibrary

lsinitrd

Show the contents of an initramfs image.

TLDR

Show the contents of the initramfs image for the current kernel

$ lsinitrd
copy


Show the contents of the initramfs image for the specified kernel
$ lsinitrd --kver [kernel_version]
copy


Show the contents of the specified initramfs image
$ lsinitrd [path/to/initramfs.img]
copy


List modules included in the initramfs image
$ lsinitrd --mod
copy


Unpack the initramfs to the current directory
$ lsinitrd --unpack
copy

Copied to clipboard