]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-debian-hvm-install: stub out libvirt + ovmf / rombios
authorWei Liu <wei.liu2@citrix.com>
Sun, 8 Feb 2015 16:05:16 +0000 (16:05 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 30 Jul 2015 14:11:02 +0000 (15:11 +0100)
Libvirt's configuration converter doesn't know how to deal with BIOS
selection. The end result is it always use the default one (seabios).
Stub out ovmf and rombios to avoid false positive results.

This restriction will be removed once libvirt's converter knows how to
deal with BIOS selection.

Note that we don't expect to see such configurations any time soon.
These configurations will be filtered in make-flight. The changes here
are more of an extra level of safety check.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ts-debian-hvm-install

index f05b1a752d0f95a328e01d9255f0e8254a9b0934..bd165069424dc533740c22328ee5af94b9b053cf 100755 (executable)
@@ -28,6 +28,13 @@ if (@ARGV && $ARGV[0] =~ m/^--stage(\d+)$/) { $stage=$1; shift @ARGV; }
 
 defined($r{bios}) or die "Need to define which bios to use";
 
+# Libvirt doesn't know anything about bios. It will always use the
+# default one (seabios). Stub out rombios and ovmf to avoid false
+# positive results.
+if ($r{bios} =~ m/ovmf|rombios/ && $r{toolstack} eq 'libvirt') {
+    die "libvirt + $r{bios} is not supported yet.";
+}
+
 our ($whhost,$gn) = @ARGV;
 $whhost ||= 'host';
 $gn ||= 'debianhvm';