CPIO command :
cpio -t 列表 initramfs 裡面的 file
zcat /boot/initrd.img-2.6.24-12-generic | cpio -t
cpio -i 解開 cpio 的 file
zcat /boot/initrd.img-2.6.24-12-generic | cpio -i
zcat 可以邊解邊 cat,對於沒壓縮過的,直接用 cat 就可以了
cpio -o 製作 cpio files
find . | cpio -o -H newc | gzip -9 > initramfs.gz
No comments:
Post a Comment