diff options
author | Kevin Hilman <khilman@baylibre.com> | 2017-08-22 16:07:47 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2017-09-01 15:52:07 -0700 |
commit | 05146fa425d94a77ba35b43ac3b0a5c633163d4e (patch) | |
tree | 1d68bd51a1dfe8cc6c5e19fe517dbb19f3b67725 /templates/boot/generic-qemu-tmpfs.jinja2 | |
parent | 263fa00cd42334c69897ebad72fcd9d6acd89aeb (diff) |
initial snapshot: LAVA job creation based on templates
Change-Id: I5d545d3531f4c4190453724738076bd4eddfc4d6
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'templates/boot/generic-qemu-tmpfs.jinja2')
-rw-r--r-- | templates/boot/generic-qemu-tmpfs.jinja2 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/boot/generic-qemu-tmpfs.jinja2 b/templates/boot/generic-qemu-tmpfs.jinja2 new file mode 100644 index 0000000..3908c80 --- /dev/null +++ b/templates/boot/generic-qemu-tmpfs.jinja2 @@ -0,0 +1,26 @@ +{%- extends 'boot/generic-base-boot.jinja2' %} +{%- set boot_method = "qemu" %} +{%- block boot %} +{{ super() }} + media: {{ media_type|default("tmpfs") }} +{%- endblock %} +{%- block main %} +{{ super() }} +context: + no_kvm: false + arch: {{ qemu_arch }} + extra_options: ["{{ qemu_args }}"] +{% endblock %} +{%- block deploy -%} +{{ super() }} + images: + kernel: + image_arg: '-kernel {kernel} -append "{{ qemu_cmdline }}"' + url: {{ kernel_url }} +{%- if initrd_url and rootfs_type == 'ramdisk' %} + ramdisk: + image_arg: '-drive format=raw,file={ramdisk}' + url: {{ initrd_url }} + compression: {{ initrd_compression }} +{%- endif %} +{%- endblock %} |