40ceb751c18c52f8437121f13646b4942e8621ab
[armband.git] / patches / fuel-web / 0003-AArch64-Cirros-TestVM-Use-AAVMF-guest-UEFI.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Sat, 21 Jan 2017 00:01:16 +0100
3 Subject: [PATCH] AArch64: Cirros TestVM: Use AAVMF (guest UEFI)
4
5 Based on the direct kernel boot patch by Stan.
6
7 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
8 Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com>
9 ---
10  nailgun/nailgun/orchestrator/deployment_serializers.py | 7 +++++++
11  1 file changed, 7 insertions(+)
12
13 diff --git a/nailgun/nailgun/orchestrator/deployment_serializers.py b/nailgun/nailgun/orchestrator/deployment_serializers.py
14 index 77fcba1..fd33b3f 100644
15 --- a/nailgun/nailgun/orchestrator/deployment_serializers.py
16 +++ b/nailgun/nailgun/orchestrator/deployment_serializers.py
17 @@ -284,6 +284,13 @@ class DeploymentMultinodeSerializer(object):
18                  'hypervisor_type': 'vmware'
19              }
20
21 +        # AArch64: Use AAVMF (guest UEFI)
22 +        if arch == 'aarch64':
23 +            properties_data = {
24 +                'hw_firmware_type': 'uefi',
25 +                'short_id': 'ubuntu16.04'
26 +            }
27 +
28          # NOTE(aschultz): properties was added as part of N and should be
29          # used infavor of glance_properties
30          image_data['glance_properties'] = self.generate_properties_arguments(