On 14 December 2017 at 08:36, Xu, Hongyu <hongyu.xu@hxt-semitech.com> wrote:

Hi  , 

 

         In our testing,  we must test the os centos and Ubuntu, but the grub interrupt_prompts  is different betweent Ubuntu and centos.  So in my device_type template I use  “menu_options: {{ grub_method }}”, but the “grub_method” must  define in device jinjia2 file.  I don’t want to often chang  the device jinja2 file , whether I can define some options in the job file?

        Please give me some help!

        

         The attachmen are my device_type and device file!

 

   methods:

      grub:

        menu_options: {{ grub_method }}

        parameters:

{% if grub_method == 'centos' %}

          interrupt_prompt: {{ grub_interrupt_prompt|default('Press \'e\' to edit the selected item, or \'c\' for a command prompt.') }}



grub_interrupt_prompt is the override - this can be specified in the test job submission using the context.

https://staging.validation.linaro.org/static/docs/v2/qemu_options.html#override-variables-context
 

{% elif grub_method == 'ubuntu' %}

          interrupt_prompt: {{ grub_interrupt_prompt|default(' Press enter to boot the selected OS') }}

{% elif grub_method == 'pxe' %}

          interrupt_prompt: {{ grub_interrupt_prompt|default('Press \'e\' to edit the selected item, or \'c\' for a command prompt.') }}

{% endif %}

          bootloader_prompt: {{ grub_efi_bootloader_prompt|default('grub>') }}

          boot_message: {{ kernel_boot_message | default("Booting Linux Kernel...") }}

 

Best Regards

 

XuHongyu

 




This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.




_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users




--