LSINITRAMFS(8)

๐Ÿ’– LSINITRAMFS(8) ๐Ÿ’–

Okay bestie, this is the manual page for lsinitramfs, the tool that lets you peek inside an initramfs image without unpacking it. โœจ


๐ŸŽ€ NAME

lsinitramfs โ€” list content of an initramfs image ๐Ÿงš

๐ŸŒธ SYNOPSIS

lsinitramfs [-l] initramfs-file...
lsinitramfs -h

๐Ÿฆ‹ DESCRIPTION

So the lsinitramfs command lists what's inside whatever initramfs images you point it at. ๐Ÿ‘€ It's giving quick peek energy. You can check one initramfs file, or a whole bunch of them at once, and see exactly what's packed in there. Main character behaviour, honestly. ๐Ÿ’…

โœจ OPTIONS โœจ

  • -h โ€” Shows you the usage info and then exits. Quick and clean. ๐Ÿซถ
  • -l โ€” Gives you the long, extra-verbose listing of the initramfs content. If you want all the juicy details, this is your flag. ๐Ÿ”ฅ

๐ŸŒˆ USAGE EXAMPLES

Okay so here's how you'd check the initramfs for the kernel that's running right now:

lsinitramfs /boot/initrd.img-$(uname -r)

And if you want to compare two initramfs files in verbose mode, do this:

lsinitramfs -l /boot/vmlinuz-2.6.31-grml64 /boot/vmlinuz-2.6.33-grml64

๐Ÿ’€ BUGS

๐Ÿ™ˆ Heads up, this one's a little messy. lsinitramfs cannot deal with multiple-segmented initramfs images, except where an early (uncompressed) initramfs with system firmware is prepended to the regular compressed initramfs. So if your image is split into segments, it might not behave the way you'd hope. ๐Ÿ˜ญ

๐Ÿ‘‘ AUTHOR

The initramfs-tools are written by Maximilian Attems <maks@debian.org> and numerous others. Big thanks to them, the real MVPs. ๐Ÿซถ

๐Ÿงš SEE ALSO

initramfs-tools(7), mkinitramfs(8), unmkinitramfs(8), update-initramfs(8). Go check those out if you want to level up your initramfs game. ๐Ÿ’œ


Source: initramfs-tools, version 2015/12/09. Manual page written with love, no cap. ๐ŸŒˆ๐Ÿ’