-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boot_target: move most boot_target block into include
so that it could be reused with different variables passed. But since there are some blocks defined inside the boot_target block, which could not be moved to the include file, so just most of the lines are moved to the include file, thus necessary lines like the "- boot:" line should be added as well when reused in other places. Signed-off-by: Yongqin Liu <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{## NOTE: PLEASE DON'T ADD BLOCK HERE, AS ONLY THE RENDERED CONTENTS ##} | ||
{## WILL BE RETURNED WHEN INCLUDED, WHICH DOES NOT HAVE THE BLOCK ##} | ||
{## DEFINITION THEN, THE OVERRIDING CALLED AT OTHER PLACES WON'T WORK ##} | ||
|
||
{% if kernel_start_message is defined and kernel_start_message %} | ||
parameters: | ||
kernel-start-message: {{ kernel_start_message }} | ||
{% endif %} | ||
{% if lxc_project == true %} | ||
namespace: target | ||
{% endif %} | ||
{% include "include/boot_target/boot_os_prompt.jinja2" %} | ||
{% include "include/boot_target/timeout_and_method.jinja2" %} | ||
{% if FASTBOOT_COMMANDS is defined %} | ||
commands: | ||
{% for fcmd in FASTBOOT_COMMANDS %} | ||
- {{ fcmd }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if lxc_project == true and pre_os_command is defined and pre_os_command == true %} | ||
protocols: | ||
lava-lxc: | ||
- action: auto-login-action | ||
request: pre-os-command | ||
timeout: | ||
minutes: 2 | ||
{% endif %} | ||
{% if DOCKER_IMAGE_BOOT is defined %} | ||
docker: | ||
image: {{DOCKER_IMAGE_BOOT}} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters