AFAIK, the cpio command will always extract into the current directory.
Unless you have the cpio.tcz extension installed, you'd be using the BusyBox cpio command. The web page (
http://www.busybox.net/downloads/BusyBox.html#cpio) does not provide any more information than what you'd get with 'cpio --help'. Since BusyBox uses mostly a subset of it's GNU cousins the next stop to find out more is the GNU cpio web page:
http://www.gnu.org/software/cpio/manual/cpio.htmlReading through that page shows that even the fully featured GNU cpio command (the one you'd get with cpio.tcz) does not offer any option to change the extraction target directory.
I personally use for cpio extraction the '
cpio -idum' options to: (1) extract directories, (2) overwrite pre-existing files, and (3) preserve the modification timestamps from the archive. Please note that I've found '-H newc' to be a completely redundant option, that might have had some meaning in the past.
One further note with regards to the initrd archive: One should always extract this as root (e.g. "... | sudo cpio -idum") to ensure that no ownership, permissions or special devices are "lost".