--- builds_bin/build_ISO 2007/01/22 16:37:24 1.8 +++ builds_bin/build_ISO 2007/06/12 14:56:43 1.12 @@ -1,29 +1,5 @@ #!/bin/sh -# Charlie Brady wrote on smeserver-developer: -# [I'm sure I've said this before, but ...] there's no new anaconda SRPM. -# The cdrom image I've been using comes directly from a CentOS one. - -# -# What I've done is: -# -# - add CentOS/base/updates.img, made using mkcramfs from the updates directory -# - delete unwanted RPMs -# - add wanted RPMs -# - replace comps.xml -# - add install.cfg and update.cfg -# - edit isolinux/isolinux.cfg -# -# Run this in the a 7.0alphaXX directory, containing cdrom.image -# which contains the directory tree: - - -echo "Checking packages not installed in CentOS workstation group" -for package in anaconda anaconda-runtime bogl booty createrepo mkisofs zsync -do - rpm -q $package || exit "$package must be installed" -done - [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1) distname='SME Server' @@ -45,7 +21,7 @@ PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \ $(pwd)/cdrom.image \ - i386 > pkgorder + $(uname -i) > pkgorder PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \ --withnumbers \ @@ -56,14 +32,14 @@ rm -f $disttag-$distvers.iso smeserver.i cd cdrom.image -yum-arch . createrepo . +sync; rm -rf .olddata repoview . +sync; rm -rf .repodata bootimg='isolinux/isolinux.bin' bootcat='isolinux/boot.cat' -#mkisopts='-r -N -L -d -D -J' -mkisopts='-r -J' +mkisopts='-v -U -J -R -T' today="$(date '+%d %b %Y')" mkisofs $mkisopts \ -V "$distname $distvers" \ @@ -85,6 +61,8 @@ zsyncmake $disttag-$distvers.iso mv $disttag-$distvers.iso $disttag.iso ln -sf $disttag.iso $disttag-$distvers.iso +[ -d SRPMS ] || (echo "No SRPMS directory?"; exit 1) + echo "Building SRPMS ISO" rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso @@ -99,9 +77,7 @@ mkisofs $mkisopts \ --graft-points \ ./SRPMS=SRPMS \ GPL=cdrom.image/GPL \ - RPM-GPG-KEY=cdrom.image/RPM-GPG-KEY \ - RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \ - RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7 + RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum zsyncmake $disttag-$distvers-SRPMS.iso