summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-06-11 15:18:27 +0200
committerCorentin LABBE <clabbe@baylibre.com>2018-06-14 07:18:59 +0200
commit0bd9c595ead7f0de8e24bc35a45b5f8deafac31d (patch)
tree092e59f48f7d5a1b4c5bd2644fc8ca419d437518 /templates
parent3ca619760d765d265675fe94695ea6115285572b (diff)
templates/boot: generic-base-boot: fix boot with NBD
Since the following commit: https://github.com/Linaro/lava-dispatcher/commit/b8e7dc1317e263884c2e10bcf4ff822857a545a5 LAVA jobs need to have a set_port action. This patch permit to generate a job with such action Change-Id: I34152d146f3deb6839c320da86a0b75187a93070 Signed-off-by: Corentin LABBE <clabbe@baylibre.com> Tested-on: m3ulcb
Diffstat (limited to 'templates')
-rw-r--r--templates/boot/generic-base-boot.jinja29
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/boot/generic-base-boot.jinja2 b/templates/boot/generic-base-boot.jinja2
index 5011876..a8e253a 100644
--- a/templates/boot/generic-base-boot.jinja2
+++ b/templates/boot/generic-base-boot.jinja2
@@ -1,4 +1,13 @@
{%- extends 'base/agl-simple.jinja2' %}
+{%- if rootfs_type == 'nbd' %}
+{%- block deploy %}
+{{ super() }}
+ protocols:
+ lava-xnbd:
+ - action: nbd-deploy
+ request: set_port
+{%- endblock %}
+{%- endif %}
{%- block boot %}
{{ super() }}
- boot: