HostDiskSwap 2000
Baud 115200
+
+ Tftp /tftpboot/pxe
+
+ DebianNonfreeFirmware firmware-bnx2
);
#---------- general setup and config reading ----------
$c{TestHostDomain} ||= $c{DnsDomain};
+ my $whoami = `whoami` or die $!;
+ chomp($whoami) or die;
+
$c{WebspaceFile} ||= "$ENV{'HOME'}/public_html/";
if (!$c{WebspaceUrl}) {
my $nodename = `uname -n` or die $!;
- my $whoami = `whoami` or die $!;
chomp($nodename) or die;
- chomp($whoami) or die;
$c{WebspaceUrl} = "http://$nodename.$c{DnsDomain}/~$whoami/";
}
$c{WebspaceCommon} ||= 'osstest/';
$c{OverlayLocal} ||= "overlay-local";
$c{GuestDebianSuite} ||= $c{DebianSuite};
+
+ $c{PxeDiBase} ||= "$whoami/osstest/debian-installer";
+ $c{PxeDiVersion} ||= 'current';
}
sub augmentconfigdefaults {
$c{SerialLogPattern}= '/root/sympathy/%host%.log*';
-$c{Tftp}= '/tftpboot/pxe';
-$c{PxeDiBase}= 'osstest/debian-installer';
-$c{PxeDiVersion}= '2012-01-30-squeeze';
1;
# ./mg-debian-installer-update lenny i386 'firmware-bnx2 firmware-spong'
set -e
+. cri-getconfig
+
suite=$1
arch=$2
packages="$3"
pfile=$sbase/non-free/binary-$arch/Packages.bz2
files='initrd.gz linux'
-dstroot=/tftpboot/pxe/osstest/debian-installer/
+dstroot=`getconfig Tftp`/`getconfig PxeDiBase`/
date=`date +%Y-%m-%d`-$suite
dst=$arch/$date
ensure_key "$overlay"/etc/ssh/ssh_host_rsa_key -t rsa -b 1024
ensure_key "$overlay"/etc/ssh/ssh_host_dsa_key -t dsa
+#---------- ensuring we can update pxe files and have d-i ----------
+
+tftp=`getconfig Tftp`
+if ! test -d "$tftp"; then
+ echo >&2 'Need Tftp config variable pointing to tftp server'; exit 1
+fi
+
+dibase=`getconfig PxeDiBase`
+diver=`getconfig PxeDiVersion`
+suite=`getconfig DebianSuite`
+firmware=`getconfig DebianNonfreeFirmware`
+
+if [ "x$diver" = xcurrent ]; then
+ for arch in i386 amd64; do
+ if test -d "$tftp/$dibase/$arch/$diver"; then continue; fi
+ mkdir -p "$tftp/$dibase/$arch"
+ echo "** need to generate d-i with firmware for $arch"
+ ./mg-debian-installer-update $suite $arch $firmware
+ done
+fi
+
#---------- making the database with a flight and some jobs ----------
branch=xen-unstable