summaryrefslogtreecommitdiffstats
path: root/templates/boot
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-03-05 11:16:59 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-03-06 22:30:15 +0100
commit0bc9d8bf5657377b736844f4ec73e68f87af2d4f (patch)
treea8797e6a79a46f0624db6e5d0b1d40e78ad68f13 /templates/boot
parentb41fbdd57d097f518bf82d4771aafe4a4b11b429 (diff)
SPEC-3210: Set the interface for the test device
By default LAVA set the test device on IDE. Stretch version of qemu doesnt care about this setting and was always using virtio. But buster qemu care now about this and fail with: machine type does not support if=ide,bus=0,unit=0 This patch adds the necessary to restore the use of virtio. Change-Id: If34194d82b6104b9b5be7118a5194bd3b61fc090 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'templates/boot')
-rw-r--r--templates/boot/generic-qemu-tmpfs.jinja23
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/boot/generic-qemu-tmpfs.jinja2 b/templates/boot/generic-qemu-tmpfs.jinja2
index f8cbd7d..e39802d 100644
--- a/templates/boot/generic-qemu-tmpfs.jinja2
+++ b/templates/boot/generic-qemu-tmpfs.jinja2
@@ -21,6 +21,9 @@ context:
{%- if qemu_memory is defined %}
memory: {{ qemu_memory }}
{%- endif %}
+{%- if guestfs_interface is defined %}
+ guestfs_interface: {{ guestfs_interface }}
+{%- endif %}
extra_options: ["{{ qemu_args }}"]
{% endblock %}
{%- block deploy -%}