This patch, as the subject says, will add a [stage2] section to .treeinfo. This will help other tools find the stage2 images, for things like upgrades and such. Comments welcomed. -w
Index: mk-images =================================================================== RCS file: /usr/local/CVS/anaconda/scripts/mk-images,v retrieving revision 1.240 diff -u -r1.240 mk-images --- mk-images 18 Jun 2007 17:33:26 -0000 1.240 +++ mk-images 27 Jul 2007 20:03:38 -0000 @@ -686,6 +686,7 @@ size=$(ls -l $INSTIMGPATH/${imagename}2.img | awk '{print $5}') size=$(expr $size / 1024) echo "Wrote $INSTIMGPATH/${imagename}2.img (${size}k)..." + echo "instimage = $INSTIMGPATH/${imagename}2.img" >> $TOPDESTPATH/.treeinfo rm -rf $tmp } @@ -731,11 +732,13 @@ chmod 644 $INSTIMGPATH/${imagename}.img echo "Wrote $INSTIMGPATH/${imagename}.img (${SIZE}k)" + echo "mainimage = $INSTIMGPATH/${imagename}.img" >> $TOPDESTPATH/.treeinfo rm $mmi_tmpimage } makeSecondStage() { + echo "[stage2]" >> $TOPDESTPATH/.treeinfo echo "Building minstg.img" makeinstimage "minstg" "squashfs" [ $? = 0 ] || exit 1
Attachment:
signature.asc
Description: This is a digitally signed message part