summaryrefslogtreecommitdiffstats
path: root/templates/boot/generic-qemu-tmpfs.jinja2
blob: 3908c80846949b75c0d86f733ae89e43a649e19c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 %}