unzip / zip initrd.img note
1. Unzip initrd0.img
gzip -dc initrd0.img | cpio -div
1. Unzip initrd0.img
gzip -dc initrd0.img | cpio -div
2. Modify it
3. Zip file to initrd0.img
find . | cpio -H newc --quiet -o > ../new.img
gzip -9 -c new.img > new.img.gz
mv new.img.gz initrd0.img
0 意見:
張貼留言