#!/bin/sh PYTHONPATH=/usr/lib/anaconda LOGFILE=/tmp/makeisos.log publisher='Caos Project' bootimg='isolinux/isolinux.bin' bootcat='isolinux/boot.cat' distname='CentOS' distvers='3.3' arch='i386' mkisopts='-r -J' today="$(date '+%d %b %Y')" mkisofs $mkisopts \ -V "CentOS-3 Disk 1" \ -A "CentOS-3 created on $today" \ -publisher "$publisher" \ -p "$publisher" \ -b "$bootimg" \ -c "$bootcat" \ -no-emul-boot -boot-load-size 4 -boot-info-table \ -x lost+found \ -o "$distname"-"$distvers"-"$arch"-disc1.iso \ "$arch"-disc1 >> $LOGFILE 2>&1 /usr/lib/anaconda-runtime/implantisomd5 "$distname"-"$distvers"-"$arch"-disc1.iso >> $LOGFILE 2>&1 for i in 2 3 4 5 6 ; do mkisofs $mkisopts \ -V "CentOS-3 Disk $i" \ -A "CentOS-3 created $today" \ -publisher "$publisher" \ -p "$publisher" \ -x lost+found \ -o "$distname"-"$distvers"-"$arch"-disc${i}.iso \ "$arch"-disc${i} >> $LOGFILE 2>&1 /usr/lib/anaconda-runtime/implantisomd5 "$distname"-"$distvers"-"$arch"-disc${1}.iso >> $LOGFILE 2>&1 done