. ../locations.include MYPWD=`pwd` export MYPWD #clean up old ones for i in 1 2 3 4 5 do if [ -d $RELEASEDIR/$ARCH-disc0-disc$i ] ; then rm -r $RELEASEDIR/$ARCH-disc0-disc$i fi done if [ -d $RELEASEDIR/$ARCH-disc0 ] ; then rm -r $RELEASEDIR/$ARCH-disc0 fi # Make disc0 mkdir -vp $RELEASEDIR/$ARCH-disc0/$DEFAULT #copy in the documentation if [ -d $RELEASEDIR/$ARCH/$DEFAULT.documentation ] ; then mkdir $RELEASEDIR/$ARCH-disc0/$DEFAULT.documentation cp -ra $RELEASEDIR/$ARCH/$DEFAULT.documentation/ $RELEASEDIR/$ARCH-disc0/ fi cp -p $RELEASEDIR/$ARCH/$DEFAULT.releasenote $RELEASEDIR/$ARCH-disc0/ cp -p $RELEASEDIR/$ARCH/README $RELEASEDIR/$ARCH-disc0/ cp -p $RELEASEDIR/$ARCH/RELEASE-NOTES*.html $RELEASEDIR/$ARCH-disc0/ #copy in isolinux and special *.iso config files $MYPWD/subscripts/fix.isolinux.sh mkdir $RELEASEDIR/$ARCH-disc0/isolinux cp -fa $RELEASEDIR/$ARCH/isolinux/* $RELEASEDIR/$ARCH-disc0/isolinux/ if [ -f $RELEASEDIR/$ARCH/$DEFAULT/build/isolinux/isolinux.cfg.iso ] ; then cp -f $RELEASEDIR/$ARCH/$DEFAULT/build/isolinux/isolinux.cfg.iso $RELEASEDIR/$ARCH-disc0/isolinux/isolinux.cfg fi if [ -f $RELEASEDIR/$ARCH/$DEFAULT/build/isolinux/boot.msg.iso ] ; then cp -f $RELEASEDIR/$ARCH/$DEFAULT/build/isolinux/boot.msg.iso $RELEASEDIR/$ARCH-disc0/isolinux/boot.msg fi if [ -d $RELEASEDIR/$ARCH/RHupdates ] ; then cp -a $RELEASEDIR/$ARCH/RHupdates $RELEASEDIR/$ARCH-disc0/ fi #make updates.img from original area and copy in cd $MYPWD/.. ./make.updates.img.sh #Copy over misc things cd - cp $RELEASEDIR/$ARCH/.discinfo $RELEASEDIR/$ARCH-disc0/ cp -a $RELEASEDIR/$ARCH/$DEFAULT/build $RELEASEDIR/$ARCH-disc0/$DEFAULT/ cp -a $RELEASEDIR/$ARCH/$DEFAULT/base $RELEASEDIR/$ARCH-disc0/$DEFAULT/ cp -a $RELEASEDIR/$ARCH/RPM-GPG-KEYs $RELEASEDIR/$ARCH-disc0/ #Special things for disc 4 if [ -d $RELEASEDIR/$ARCH/errata/fastbugs/RPMS ] ; then mkdir -p $RELEASEDIR/$ARCH-disc0-disc4/fastbugs/ ln $RELEASEDIR/$ARCH/errata/fastbugs/RPMS/*.rpm $RELEASEDIR/$ARCH-disc0-disc4/fastbugs/ fi #copy in $DEFAULT/RPMS which are RPMS mkdir $RELEASEDIR/$ARCH-disc0/$DEFAULT/RPMS ln $RELEASEDIR/$ARCH/$DEFAULT/RPMS/*.rpm $RELEASEDIR/$ARCH-disc0/$DEFAULT/RPMS #Need to move the big SRPMS/vendor directory out of the way as splittree.py #cannot handle this, we put it back at the end, this also means that these #will not be on the cd's mv $RELEASEDIR/SRPMS/vendor .. # echo "Using $RELEASEDIR/$ARCH/$DEFAULT/base/$FILEORDER as the fileorder file" #echo "and not making a new one" #cp -v $RELEASEDIR/$ARCH/$DEFAULT/base/$FILEORDER $RELEASEDIR/$ARCH-disc0/$DEFAULT/base/ echo "and making a new one" $ANACONDADIR/pkgorder $RELEASEDIR/$ARCH $ARCH $DEFAULT > $RELEASEDIR/$ARCH-disc0/$DEFAULT/base/$FILEORDER #Run splittree.py to split the $DEFAULT/RPMS onto multiple cd's cd $MYPWD/subscripts set `./calculate.num.cds.sh` cd - TOTBINCD=$1 TOTSRCCD=$2 TOTCD=$3 TOTBINCD=4 TOTSRCCD=1 TOTCD=4 echo "Total Binary cds is $TOTBINCD, Total SRC cds is $TOTSRCCD" echo "Running splittree to decide on how to span the cd images" $ANACONDADIR/splittree.py --arch=$ARCH --total-discs=$TOTCD --bin-discs=$TOTBINCD --src-discs=$TOTSRCCD --release-string=$DEFAULT --default=$DEFAULT --pkgorderfile=$RELEASEDIR/$ARCH-disc0/$DEFAULT/base/$FILEORDER --distdir=$RELEASEDIR/$ARCH-disc0 --srcdir=$RELEASEDIR/SRPMS/ mv ../vendor $RELEASEDIR/SRPMS/ #Run genhdlist to create new hdlist's with cd numbers echo "Running genhdlist against $RELEASEDIR/$ARCH-disc0-disc[1-$TOTBINCD]" cd / TMPBINAREA=`echo $RELEASEDIR/$ARCH-disc0-disc[1-$TOTBINCD]` cd $RELEASEDIR $ANACONDADIR/genhdlist --withnumbers --fileorder `pwd`/$ARCH-disc0/$DEFAULT/base/$FILEORDER --default $DEFAULT $TMPBINAREA #Now make the iso images #CHECK that $CDISOAREA exists and make if it does not if [ -d $CDISOAREA ] ; then echo "Creating CD iso images in $CDISOAREA" else mkdir -p $CDISOAREA fi # Make disc1 FIRST DISK is special CDNAME=$CDISOAREA/$DEFAULT.$VERSION.$DATE.$ARCH cd $MYPWD/subscripts CDNUM=1 #hard code all this extra stuff for now but use new code next time #need to copy it all over. last time did not get pxeboot mkdir -p $RELEASEDIR/$ARCH-disc0-disc$CDNUM/images cd $TREE/images/$DEFAULT find . -print | cpio -pvdum $RELEASEDIR/$ARCH-disc0-disc4/images/ cd - # $MYPWD/subscripts/makeapt.sl.iso.sh $CDNUM cd $RELEASEDIR/$ARCH-disc0-disc$CDNUM $MYPWD/subscripts/mkisoimage.disc$CDNUM.sh . "$CDNAME.disc$CDNUM.iso" dd if=/dev/zero count=15 bs=2048 >> $CDNAME.disc$CDNUM.iso echo "implanting md5sum in disc$CDNUM now" /usr/lib/anaconda-runtime/implantisomd5 $CDNAME.disc$CDNUM.iso CDNUM=2 # Make discx while [ $CDNUM -lt $TOTCD ] do cd $MYPWD/subscripts $MYPWD/subscripts/makeapt.sl.iso.sh $CDNUM cd $RELEASEDIR/$ARCH-disc0-disc$CDNUM if [ -d $DEFAULT ] ; then ln -s $DEFAULT RedHat fi $MYPWD/subscripts/mkisoimage.discx.sh . "$CDNAME.disc$CDNUM.iso" dd if=/dev/zero count=15 bs=2048 >> $CDNAME.disc$CDNUM.iso echo "implanting md5sum in disc$CDNUM now" /usr/lib/anaconda-runtime/implantisomd5 $CDNAME.disc$CDNUM.iso CDNUM=`expr $CDNUM + 1` done # Make lastdisk #hard code all this extra stuff for now but use new code next time mv $RELEASEDIR/$ARCH-disc0-disc`expr $CDNUM + 1`/SRPMS $RELEASEDIR/$ARCH-disc0-disc$CDNUM/ cd $TREE/contrib/RPMS/ for i in * do if [ ! $i = "headers" ] ; then mkdir -p $RELEASEDIR/$ARCH-disc0-disc$CDNUM/contrib/RPMS/$i ln $TREE/contrib/RPMS/$i/* $RELEASEDIR/$ARCH-disc0-disc$CDNUM/contrib/RPMS/$i/ fi done cd $TREE/contrib/SRPMS/ for i in * do mkdir -p $RELEASEDIR/$ARCH-disc0-disc$CDNUM/contrib/SRPMS/$i ln $TREE/contrib/SRPMS/$i/*.src.rpm $RELEASEDIR/$ARCH-disc0-disc$CDNUM/contrib/SRPMS/$i/ done # cd $MYPWD/subscripts $MYPWD/subscripts/makeapt.sl.iso.sh $CDNUM cd $RELEASEDIR/$ARCH-disc0-disc$CDNUM if [ -d $DEFAULT ] ; then ln -s $DEFAULT RedHat fi $MYPWD/subscripts/mkisoimage.last.sh . "$CDNAME.disc$CDNUM.iso" dd if=/dev/zero count=15 bs=2048 >> $CDNAME.disc$CDNUM.iso echo "implanting md5sum in disc$CDNUM now" /usr/lib/anaconda-runtime/implantisomd5 $CDNAME.disc$CDNUM.iso echo "Making md5sums now, this will take a while" md5sum $CDNAME.disc?.iso > $CDNAME.md5sum