This allows the version to differ e.g. between Wheezy and Jessie.
Update production-config* to set TftpDiVersion_jessie instead of just
TftpDiVersion, also add TftpDiVersion_wheezy using the version
replaced in commit
f610ea162836 "Switch to Debian 8.0 (jessie) as OS
for test hosts".
In mfi-common we need to check for TftpDiVersion_$suite (_$guestsuite)
and TftpDiVersion manually since getconfig In that context will not
see any DebianSuite override in the environment.
This ensures that when a non-default suite is configured a
corresponding useful version of DI is selected.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
$c{TftpTmpDir} ||= "$c{TftpPlayDir}tmp/";
$c{TftpDiBase} ||= "$c{TftpPlayDir}debian-installer";
- $c{TftpDiVersion} ||= 'current';
+ $c{TftpDiVersion} ||= $c{ "TftpDiVersion_$c{DebianSuite}" } // 'current';
$c{TftpGrubBase} ||= "$c{TftpPlayDir}grub";
$c{TftpGrubVersion} ||= 'current';
defsuite=`getconfig DebianSuite`
defguestsuite=`getconfig GuestDebianSuite`
-defdi_version=`getconfig TftpDiVersion`
+
+# Pick default Debian Installer version to correspond to the chosen
+# suite.
+if [ -z "$defdi_version" -a -n "$defsuite" ] ; then
+ defdi_version=`getconfig TftpDiVersion_$defsuite`
+fi
+if [ -z "$defdi_version" ] ; then
+ defdi_version=`getconfig TftpDiVersion`
+fi
guest_di_version=$defdi_version
TftpPxeGroup osstest
# Update with ./mg-debian-installer-update(-all)
-TftpDiVersion 2016-01-24
+TftpDiVersion_wheezy 2015-09-07
+TftpDiVersion_jessie 2016-01-24
# These should normally be the same.
# Update with ./mg-cpu-microcode-update
TftpPxeTemplatesReal pxelinux.cfg/%ipaddrhex%
TftpPxeGroup osstest
-TftpDiVersion 2016-01-24
+TftpDiVersion_wheezy 2015-09-07
+TftpDiVersion_jessie 2016-01-24
# These should normally be the same.
MicrocodeUpdateAmd64 microcode.x86.2015-06-12.cpio