diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-06-11 15:18:27 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-06-14 07:18:59 +0200 |
commit | 0bd9c595ead7f0de8e24bc35a45b5f8deafac31d (patch) | |
tree | 092e59f48f7d5a1b4c5bd2644fc8ca419d437518 | |
parent | 3ca619760d765d265675fe94695ea6115285572b (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
-rw-r--r-- | templates/boot/generic-base-boot.jinja2 | 9 |
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: |