Author Archives: www

Extract initramfs on RHEL/CentOS 7

The initramfs is a compress cpio archive. Use the dracut skipcpio tool to extract the compress cpio file then gunzip that and finally extract the archive using cpio. Luckily we can chain these commands together. # mkdir /tmp/initramfs # cd /tmp/initramfs # /usr/lib/dracut/skipcpio /boot/initramfs-3.10.0-327.18.2.el7.x86_64.img | gunzip -c | cpio -dcim # ls -l total 12… Read More »