New begrid os
From Begrid Wiki
New OS
- use the fill_swrep script to populate SWREP
Find scripts and config files in CB5/src/begrid/cb-client/cb-client-swrep to refill the repositories and create the templates.
- get newOS tar ball
mkdir tmpp cd tmpp wget http://quattor.begrid.be/begrid/install/newOS.tar.gz tar xzf newOS.tar.gz
- do
## name to use in quattor NEWOS=x86_64_cos5_51 ## no http, just path starting from http:// NEWRPMS=ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/5.1/os/x86_64/CentOS/ ## link to comps.xml file NEWCOMPS=http://ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/5.1/os/x86_64/repodata/comps.xml ## JAVA_HOME JAVA_HOME=/usr/java/jdk1.6.0_01/ HERE=$PWD mkdir $NEWOS cd $NEWOS wget -r -np http://$NEWRPMS wget $NEWCOMPS $HERE/misc/rpmProvides $PWD/$NEWRPMS > provides-$NEWOS $HERE/misc/rpmRequires provides-$NEWRPMS $PWD/$NEWOS > requires-$NEWOS export JAVA_HOME export CLASSPATH=$HERE/saxon8sa.jar java net.sf.saxon.Transform comps.xml comps2pan.xsl depdb=$PWD/requires-$NEWOS output-dir=$PWD pan-prefix=rpms/ ## ## -c option to point to the compat rpm lists (eg compat for sl4, legacy for sl5) $HERE/misc/makecompatarch -t $PWD/rpms/ -c legacy_ $HERE/misc/getpkgarch -r $PWD/$NEWRPMS -t $PWD/rpms/ -f rpms/get_pkgarch $HEREs/misc/getpkgarch -r $PWD/$NEWRPMS -t $PWD/rpms/ -f rpms/get_compat_pkgarch -p PKG_COMPAT_ARCH sed -i 's/PREF_ARCH/PREF_COMPAT_ARCH/' $PWD/rpms/get_compat_pkgarch.tpl cd rpms tar cvf ../all_$NEWOS.tar *tpl
- copy the tarball all_$NEWOS.tar to your workspace and add them in the new repository under rpms/
- edit the file get_pkgarch.tpl and add the line
include rpms/get_compat_pkgarch;
- set the value for PREF_ARCH in get_pkgarch and PREF_COMPAT_ARCH in get_compat_arch
- make sure they exist (esp look for differences in i686 and i386!!
- on the centralised server, go to /var/www/html/begrid/install
- make a new directory with name of OS in quattor
- recreate the structure as from the mirror
- make sure there is a direcotry called images with the correct images
- make sure there's a symlink to the RPMS in /var/www/html/begrid/Central_BEGrid_Repository/
- create the repomd.xml files
NEWOS=x86_64_cos5_51 cd /var/www/html/begrid/install/apt ./make_repos.sh $NEWOS
- contos 5 required that the repodata directory was also present in the install base.
- on the quattor client, create a new pxe directory
NEWOS=x86_64_cos5_51 ## URL to images directory PXEIMG=http://ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/5.1/os/x86_64/images/pxeboot/ cd /osinstall/nbp mkdir $NEWOS cd $NEWOS for i in vmlinuz initrd.img do wget $PXEIMG/$i done