fuel-web: Fixup AAVMF props patch context
[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,4 +284,11 @@ class DeploymentMultinodeSerializer(object):
18
19 +        # AArch64: Use AAVMF (guest UEFI)
20 +        if arch == 'aarch64':
21 +            properties_data = {
22 +                'hw_firmware_type': 'uefi',
23 +                'short_id': 'ubuntu16.04'
24 +            }
25 +
26          # NOTE(aschultz): properties was added as part of N and should be
27          # used infavor of glance_properties
28          image_data['glance_properties'] = self.generate_properties_arguments(