I am attempting to follow the instructions here https://superuser.com/questions/1134160/how-to-get-old-linux-versions-to-boot-after-p2v-on-vmware for getting another P2Vd old Linux system to boot, but this time the distro in question is RedHat 7.3. Having tracked down a suitable install ISO I've successfully installed a fresh RH7.3 and am now trying to extract the files from its initrd, to be combined with the ones from the failing-to-boot P2V version and build a new initrd.
However when I run
gunzip < initrd-2.4.18-3.smp.img |cpio -i -m
It responds with
cpio: warning: skipped 485423 bytes of junk
cpio: warning: archive header has reverse byte-order
cpio: premature end of file
and then writes a file named ?lyyPjye?"
(except the ys and e are extended ASCII characters) with file permissions c--S--S---
Assuming this would be a fairly straightforward gotcha I tried googling, and searching here, various combinations of cpio, initrd, reverse byte order, but other than references to problems extracting rhel6 rpms on rhel5 systems I didn't find any mentions. This is rhel7.3 trying to extract its own initrd file so version mismatches shouldn't come into it.
How do I resolve this, and will any special technique be needed to rebuild the initrd afterwards?