aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2018-06-14 13:49:35 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-06-14 13:49:35 +0000
commit2a7509dd9a27b4350c843aa25e1b5ac3e7e92cf3 (patch)
tree0e5f3e5ab68803357aa44c2523c72a08f365baf9
parentd22ed0b680c4d43b23bba52c8400c7e5bb156fe5 (diff)
parent0bd9c595ead7f0de8e24bc35a45b5f8deafac31d (diff)
Merge "templates/boot: generic-base-boot: fix boot with NBD"
-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: