RHEL7 で initramfs イメージのコンテンツを展開する
Issue
- RHEL6 以降では、initramfs イメージのコンテンツは以下のように cpio コマンドを使用して展開できます。
# ls
initramfs-2.6.32-431.el6.x86_64.img
# zcat initramfs-2.6.32-431.el6.x86_64.img | cpio -id
96748 blocks
# ls
bin dracut-004-335.el6 init initqueue-settled lib pre-pivot proc sysroot var
cmdline emergency initqueue initqueue-timeout lib64 pre-trigger sbin tmp
dev etc initqueue-finished initramfs-2.6.32-431.el6.x86_64.img mount pre-udev sys usr
- ただし、以下のように、RHEL7 の initramfs イメージのコンテンツを抽出しようとしても動作しません。
# zcat initramfs-3.10.0-229.4.2.el7.x86_64.img | cpio -id
gzip: initramfs-3.10.0-229.4.2.el7.x86_64.img: not in gzip format
cpio: premature end of archive
- RHEL7 で initramfs イメージのコンテンツを抽出するにはどうすればいいですか?
Environment
- Red Hat Enterprise Linux 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
