Friday, February 2, 2018

A few other (advanced) differences between RHEL7 & RHEL6


Extracting initramfs image
---------------------------------------

Using "skipcpio" command in RHEL7.x, otherwise, we use "gunzip" in earlier RHEL versions. So, the command to extract initramfs image file in RHEL7.x is given below:

# /usr/lib/dracut/skipcpio /boot/initramfs-$(uname -r).img | gunzip -c | cpio -id

In earlier versions, we could do this by using the command gunzip :

# gunzip -c /boot/initramfs-$(uname -r).img | cpio -i -d