diff options
| author | Zhangfei Gao <zhangfei.gao@linaro.org> | 2017-08-09 14:13:09 +0800 |
|---|---|---|
| committer | Zhangfei Gao <zhangfei.gao@linaro.org> | 2017-08-15 09:43:45 +0800 |
| commit | 8c1e4e90523ba800f1f959b188a0cd67bd0e1eff (patch) | |
| tree | eb1a9419a1a67598ec9d122aa9d6a1c03d60e4dc /docker | |
| parent | cdf318193b573b54e95396e1fa31627c70aa918f (diff) | |
| download | kolla-8c1e4e90523ba800f1f959b188a0cd67bd0e1eff.tar.gz kolla-8c1e4e90523ba800f1f959b188a0cd67bd0e1eff.zip | |
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>
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/nova/nova-libvirt/Dockerfile.j2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/nova/nova-libvirt/Dockerfile.j2 b/docker/nova/nova-libvirt/Dockerfile.j2 index 67070e62a..d3d7a2d20 100644 --- a/docker/nova/nova-libvirt/Dockerfile.j2 +++ b/docker/nova/nova-libvirt/Dockerfile.j2 @@ -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")) }} |
