. ./ap-common
. ./mfi-common
-defsuite=`getconfig DebianSuite`
-defguestsuite=`getconfig GuestDebianSuite`
+# Older versions of Xen may not build with the current default. Note
+# that branches older than 4.3 might need something even older than
+# Wheezy, but we have not done the archaeology to figure out what they
+# require.
+case "$xenbranch" in
+ xen-3.*-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+ xen-4.0-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+ xen-4.1-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+ xen-4.2-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+ xen-4.3-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+ *)
+ defsuite=`getconfig DebianSuite`
+ defguestsuite=`getconfig GuestDebianSuite`
+ ;;
+esac
# Pick default Debian Installer version to correspond to the chosen
# suite.