lsinitrd fails to read the content of erofs-root.img inside kdump initramfs file.

Solution Unverified - Updated -

Issue

  • In RHEL 10 s390x system, the lsinitrd command fails to extract or read the content of erofs-root image file.
# lsinitrd --unpack /boot/initramfs-6.12.0-55.9.1.el10_0.s390xkdump.img 
cp: cannot stat '/tmp/lsinitrd.Vfg2yc/squash-extract/erofs-root': No such file or directory

# lsinitrd /boot/initramfs-`uname -r`kdump.img  | grep -i erofs-root
rw-rr-   1 root     root     34574336 Mar  5 19:00 erofs-root.img
Squashed content (erofs-root.img):
find: ‘erofs-root/’: No such file or directory   <<<----

# ls
bin  erofs-root.img  etc  init  lib  lib64  sbin  squash  usr

# fsck.erofs --extract erofs-root.img
<E> erofs: unknown type 3 @ offset 0 of nid 1058956
<E> erofs: failed to verify packed file

Environment

  • Red Hat Enterprise Linux 10
  • erofs-utils
  • s390x
  • dracut

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content