Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion templates/libvirt/xen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
and SeaBIOS based on the loader type. This has nothing to
do with the hvmloader binary.
-->
<loader type="{{ "pflash" if vm.features.check_with_template('uefi', False) else "rom" }}">hvmloader</loader>
{% if vm.features.check_with_template('uefi', False) -%}
<loader type="pflash">/usr/share/edk2/xen/OVMF.fd</loader>
{% else -%}
<loader type="rom">hvmloader</loader>
{% endif -%}
<boot dev="cdrom" />
<boot dev="hd" />
{% else %}
Expand Down