Monday, October 26, 2015

View, Change, and Repack initrd

View
1
2
3
4
cp /boot/initrd.img /tmp
mv initrd.img initrd.gz
gunzip initrd.gz
cpio -id < initrd

Change
Repack
1
find . | cpio -o --format='newc' > ../initrd_new.img

No comments:

Post a Comment