I build some archive for linux kernel it need an archive file with absolute path. File are under folder /data/ when I pack normally it keeps file path like this
bin/ln
bin/ls
etc
the command I used is like this
cd /data
find|cpio -o -H newc -F ../data.cpio
but I want cpio to keep file with root path like this
/bin/ln
/bin/ls
/etc
I found I shuold use pax but I dont know how to write regex for path replacement