Skip to content

Commit

Permalink
include: fastboot: enable ramdisk
Browse files Browse the repository at this point in the history
Make it possible to pass in a RAMDISK_URL.
This is needed if a initrd needs to be used.

Signed-off-by: Anders Roxell <[email protected]>
  • Loading branch information
roxell committed Jan 23, 2024
1 parent 4163384 commit 85254be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lava_test_plans/include/fastboot.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{% set reboot_to_fastboot = reboot_to_fastboot|default("false") %}
{% set boot = boot|default(true) %}
{% set BOOT_LABEL = BOOT_LABEL|default("boot") %}
{% set ramdisk = ramdisk|default(false) %}
{% set rootfs = rootfs|default(true) %}
{% set rootfs_label = rootfs_label|default("rootfs") %}
{% set apply_overlay = apply_overlay|default("rootfs") %}
Expand Down Expand Up @@ -136,6 +137,16 @@ reboot_to_fastboot: {{ reboot_to_fastboot }}
compression: {{MODULES_URL_COMP}}
{% endif %}
{% endif %}
{% if ramdisk == true %}
ramdisk:
url: {{RAMDISK_URL}}
{% if RAMDISK_URL_FORMAT is defined %}
format: {{RAMDISK_URL_FORMAT}}
{% endif %}
{% if RAMDISK_URL_COMP is defined %}
compression: {{RAMDISK_URL_COMP}}
{% endif %}
{% endif %}
{% if rootfs == true %}
{{ rootfs_label }}:
url: {{ROOTFS_URL}}
Expand Down

0 comments on commit 85254be

Please sign in to comment.