LSINITRD(1)

πŸ’… LSINITRD β€” the dracut girlies' peek-inside tool πŸ’…

okay so this is lsinitrd, a page from section 1 of the manual (that's the dracut one, bestie ✨), and it's literally the tool that shows you what's inside an initramfs image. like opening the suitcase and going "ooh what's in here" πŸ§³πŸŽ€


✨ NAME ✨

lsinitrd β€” a tool to show the contents of an initramfs image 🫢


🌸 SYNOPSIS 🌸

lsinitrd ['OPTION...'] [<image> [<filename> [<filename> [...] ]]]

lsinitrd ['OPTION...'] -k <kernel version>

πŸ¦‹ DESCRIPTION πŸ¦‹

So lsinitrd shows the contents of an initramfs image. That's it, that's the vibe πŸ’–

And here's the slay part: if you leave out <image>, lsinitrd determines the default location based on your local configuration or your Linux distribution policy. it just knows 😌✨ no cap.


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” print a help message and exit. classic, iconic, always there for you πŸŽ€
  • -s, --size β€” sort the contents of the initramfs by size. biggest files first β€” main character energy only πŸ”₯
  • -f, --file <filename> β€” print the contents of <filename>. like yes bestie let me read that πŸ“
  • -k, --kver <kernel version> β€” inspect the initramfs of <kernel version>. very "this specific one, not the others" of it πŸ‘‘
  • -m, --mod β€” list the dracut modules included in the initramfs image. headcount time πŸ’€
  • --unpack β€” unpack the initramfs to the current directory, instead of displaying the contents. and if optional filenames are given, it will only unpack the specified files β€” otherwise the whole image gets unpacked. ⚠️ but lowkey important: it won't unpack anything from the early cpio part. noted, fr fr.
  • --unpackearly β€” unpack the early microcode initramfs to the current directory, instead of displaying the contents. same as --unpack, but only unpacks files from the early cpio part. the early one, specifically πŸ™ˆ
  • -v, --verbose β€” unpack verbosely. it will tell you everything πŸ—£οΈπŸ’¬

🌈 AVAILABILITY 🌈

The lsinitrd command is part of the dracut package and is available from:

https://github.com/dracut-ng/dracut-ng

🧚 AUTHORS 🧚

  • Harald Hoyer
  • Amerigo Wang
  • Nikoli

absolute legends, all three of them 🌟


⭐ SEE ALSO ⭐

man:dracut[8] β€” go read that one next, iykyk πŸ“–πŸ’œ


and that's the whole page, bestie β€” every flag, every path, every name, nothing skipped, periodt πŸ’…βœ¨

ok so this page is from dracut (version dated 2026-06-01), and that's the cute little bow on top of this whole manual page πŸŽ€πŸ«Ά bye ily, go unpack something responsibly πŸ’–

πŸ“¦ where this page comes from