AArch64: deploy.sh: Add AAVMF install prereq 75/47275/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 10 Nov 2017 18:05:48 +0000 (19:05 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 15 Nov 2017 16:53:20 +0000 (16:53 +0000)
Change-Id: I7b3bb3eac1b4665dc9c08eaf6f5af336cde31f87
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit fde3efa0766d3a2df49fc9872bd76d6611a6c8ec)

ci/deploy.sh

index 0660641..80667e8 100755 (executable)
@@ -274,6 +274,12 @@ if [ "${DEPLOY_TYPE}" = 'baremetal' ]; then
     python python-ipaddress python-jinja2
 fi
 
+# AArch64 VMs use AAVMF (guest UEFI)
+if [ "$(uname -m)" = 'aarch64' ]; then
+  [ -n "$(command -v apt-get)" ] && sudo apt-get install -y qemu-efi
+  [ -n "$(command -v yum)" ] && sudo yum install -y --skip-broken AAVMF
+fi
+
 if ! virsh list >/dev/null 2>&1; then
     notify "[ERROR] This script requires hypervisor access\n" 1>&2
     exit 1