aboutsummaryrefslogtreecommitdiffstats
path: root/templates/boot/generic-qemu-tmpfs.jinja2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/boot/generic-qemu-tmpfs.jinja2')
-rw-r--r--templates/boot/generic-qemu-tmpfs.jinja226
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 %}