Just to remember, there is an explanation here, from which the following directive can be taken:
(cpio -id; zcat | cpio -id) < /path/to/initrd.img
Powered by YARPP.
This entry was posted on Thursday, May 30th, 2019 at 11:00 am and is filed under bash, Linux, Scripting/Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Running Systems is proudly powered by
WordPress
and the Simplicity theme.
Entries (RSS)
and Comments (RSS).
December 5th, 2019 at 10:14 pm
[…] So – now you can extract even complex CPIO structures, such as can be found in older Foreman “Discovery Image” (very old implementation), Tiny Core Linux (see this forum post, and this wiki note as reference on where this stacking is invoked) and more. This said, for extracting Centos/RHEL7 initramfs, which is structured of uncompressed CPIO appended by a cpio.gz file, a different command is required, and a post about it (works for Ubuntu and RHEL) can be found here. […]