From 0bd9c595ead7f0de8e24bc35a45b5f8deafac31d Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Mon, 11 Jun 2018 15:18:27 +0200 Subject: 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 Tested-on: m3ulcb --- templates/boot/generic-base-boot.jinja2 | 9 +++++++++ 1 file changed, 9 insertions(+) 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: -- cgit 1.2.3-korg