Repacking Centos Stage2 Image

Extracting

/usr/sbin/unsquashfs -dest centos-stage2 stage2.img


Repacking

# cd centos-stage2
# tar cf - * .buildstamp | (cd ../centos-stage2-new; tar xfp -)

// make change in centos-stage2-new

# cd centos-stage2-new
# mksquashfs . ../stage2.img.new -all-root -no-fragments -noappend


No comments: