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. ๐๐
๐ฆ where this page comes from
- debian bookworm: initramfs-tools-core 0.142+deb12u3
- debian trixie: initramfs-tools-core 0.148.4 ยท GPL-2.0-or-later
- ubuntu jammy: initramfs-tools-core 0.140ubuntu13
- ubuntu jammy: initramfs-tools-core 0.140ubuntu13.5
- ubuntu noble: initramfs-tools-core 0.142ubuntu25
- ubuntu noble: initramfs-tools-core 0.142ubuntu25.8
- ubuntu questing: initramfs-tools-core 0.150ubuntu3
- ubuntu questing: initramfs-tools-core 0.150ubuntu3.1 ยท GPL-2.0-or-later
- ubuntu resolute: initramfs-tools-core 0.151ubuntu1 ยท GPL-2.0-or-later
- ubuntu stonking: initramfs-tools-core 0.151ubuntu3 ยท GPL-2.0-or-later
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms