OLD=/mnt/tmp1 NEW=/tmp/tmp2 GOOD=//mnt/src/slf5rolling/x86_64/sites/Fermi/build/base/ mkdir /tmp/tmp3 mount -o loop -t squashfs $GOOD/stage2.img.broken $OLD cd $OLD find . -print | cpio -pvdum $NEW cd $GOOD cp comps.py $NEW/usr/lib/python2.4/site-packages/yum/ cp __init__.py $NEW/usr/lib/python2.4/site-packages/yum/ #cp .buildstamp $NEW/ cd / rm /tmp/stage2.img.reallynew mksquashfs $NEW /tmp/stage2.img.reallynew -all-root -no-fragments chmod 0644 /tmp/stage2.img.reallynew # umount $OLD