Commit 8977e84e authored by Laura Nao's avatar Laura Nao Committed by Paweł Wieczorek
Browse files

Define error messages for Depthcharge



Add list of error message patterns for the Depthcharge boot method.
Allow users to redefine the errors through depthcharge_error_messages.

Signed-off-by: Laura Nao's avatarLaura Nao <laura.nao@collabora.com>
parent 04861067
......@@ -140,6 +140,24 @@ constants:
- 'Connection timed out'
depthcharge:
final-message: '{{ depthcharge_final_message | default("Starting kernel") }}'
{% if depthcharge_error_messages %}
error-messages:
{% for message in depthcharge_error_messages %}
- '{{ message }}'
{% endfor %}
{% else %}
error-messages:
- 'Tftp failed.'
- 'Dhcp release failed.'
- 'No space left for ramdisk'
- 'TFTP failed for ramdisk.'
- 'Dhcp release failed.'
- 'Out of space adding TFTP server IP to the command line.'
- 'No network device.'
{% endif %}
{% if depthcharge_extra_error_message %}
- '{{ depthcharge_extra_error_message }}'
{% endif %}
# OS shutdown message
# Override: set as the shutdown-message parameter of an Action.
# SHUTDOWN_MESSAGE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment