nova-libvirt: add package qemu-efi to support uefi image

On arm64, uefi image is usually used via --property hw_firmware_type=uefi
In order to support this, qemu-efi has to be installed
Ohterwise error reports:
Terminating instance: libvirtError: Failed to open file '/usr/share/AAVMF/AAVMF_VARS.fd': No such file or directory

Change-Id: Ibc1b39e821e84fb9739833be04bdb41db59d2ff5
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
This commit is contained in:
Zhangfei Gao 2017-08-09 14:13:09 +08:00
parent cdf318193b
commit 8c1e4e9052
1 changed files with 12 additions and 0 deletions

View File

@ -39,6 +39,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
] %}
{% endif %}
{% if base_arch == "aarch64" %}
{% set nova_libvirt_packages = nova_libvirt_packages + [
'qemu-efi'
] %}
{% endif %}
{% elif base_distro in ['debian'] %}
{% set nova_libvirt_packages = [
@ -60,6 +66,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
] %}
{% endif %}
{% if base_arch == "aarch64" %}
{% set nova_libvirt_packages = nova_libvirt_packages + [
'qemu-efi'
] %}
{% endif %}
{% endif %}
{{ macros.install_packages(nova_libvirt_packages | customizable("packages")) }}