aboutsummaryrefslogtreecommitdiffstats
path: root/templates/boot/generic-uboot-tftp.jinja2
blob: a7fa6cee5a01cf5e3c446e9e83d806f295d74e84 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{%- extends 'boot/generic-base-boot.jinja2' %}
{%- set boot_method = "u-boot" %}
{%- block main %}
{{ super() }}
{%- if rootfs_type == 'nbd' %}
protocols:
  lava-xnbd:
    port: auto
{%- endif %}
{% endblock %}
{%- block boot %}
{{ super() }}
    type: {{ uboot_type|default("bootm") }}
    commands: {{ boot_commands|default("ramdisk") }}
{%- if rootfs_type == 'nbd' %}
    transfer_overlay:
      download_command: wget
      unpack_command: tar -C / -xvpf
{%- endif %}
{%- endblock %}
{%- block deploy -%}
{{ super() }}
    kernel:
      url: {{ kernel_url }}
{%- if rootfs_type == 'nbd' %}
    initrd:
      url: {{ nbdinitrd_url }}
      allow_modify: false
    nbdroot:
      url: {{ nbdroot_url }}
      compression: {{ nbdroot_compression }}
{%- endif %}
{%- if initrd_url and rootfs_type != 'nbd' %}
    ramdisk:
      url: {{ initrd_url }}
      compression: {{ initrd_compression }}
{%- endif %}
{%- if modules_url %}
    modules:
      url: {{ modules_url }}
      compression: {{ modules_compression }}
{%- endif %}
{%- if dtb_url %}
    dtb:
      url: {{ dtb_url }}
{%- endif %}
{%- endblock %}