lsinitrd(1)

lsinitrd1

Tool to show the contents of an initramfs image

Usage

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

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

Overview

lsinitrd shows the contents of an initramfs image. if <image> is omitted, then lsinitrd determines the default location based on the local configuration or Linux distribution policy.

Options

-h, --help

print a help message and exit.

-s, --size

sort the contents of the initramfs by size.

-f, --file <filename>

print the contents of <filename>.

-k, --kver <kernel version>

inspect the initramfs of <kernel version>.

-m, --mod

list dracut modules included of the initramfs image.

--unpack

unpack the initramfs to the current directory, instead of displaying the contents. If optional filenames are given, will only unpack specified files, else the whole image will be unpacked. Won’t unpack anything from early cpio part.

--unpackearly

unpack the early microcode initramfs to the current directory, instead of displaying the contents. Same as --unpack, but only unpack files from early cpio part.

-v, --verbose

unpack verbosely

Releases

7 releases since Debian 8 (Jessie); the text changed 6 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13
  7. Arch

--mod since Debian 10 (Buster); --unpack since Debian 9 (Stretch); --unpackearly since Debian 9 (Stretch); --verbose since Debian 9 (Stretch); -m since Debian 10 (Buster); -v since Debian 9 (Stretch).

Availability

The lsinitrd command is part of the dracut package and is available from <https://github.com/dracut-ng/dracut-ng> "" <"https://github.com/dracut-ng/dracut-ng">

Authors

Harald Hoyer

Amerigo Wang

Nikoli

From dracut 111-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.