From 85254be17eaf6f943dc3864efdcddece6fa051d6 Mon Sep 17 00:00:00 2001 From: Anders Roxell Date: Thu, 18 Jan 2024 18:51:30 +0100 Subject: [PATCH] include: fastboot: enable ramdisk Make it possible to pass in a RAMDISK_URL. This is needed if a initrd needs to be used. Signed-off-by: Anders Roxell --- lava_test_plans/include/fastboot.jinja2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lava_test_plans/include/fastboot.jinja2 b/lava_test_plans/include/fastboot.jinja2 index 67070bf8..551bb578 100644 --- a/lava_test_plans/include/fastboot.jinja2 +++ b/lava_test_plans/include/fastboot.jinja2 @@ -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") %} @@ -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}}