64e60b31665cf55126f15d06ad89ac4932299c1b
[armband.git] / patches / fuel-web / 0003-AArch64-Cirros-TestVM-Use-AAVMF-guest-UEFI.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 Enea AB, Cavium and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Sat, 21 Jan 2017 00:01:16 +0100
11 Subject: [PATCH] AArch64: Cirros TestVM: Use AAVMF (guest UEFI)
12
13 Based on the direct kernel boot patch by Stan.
14
15 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
16 Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com>
17 ---
18  nailgun/nailgun/orchestrator/deployment_serializers.py | 7 +++++++
19  1 file changed, 7 insertions(+)
20
21 diff --git a/nailgun/nailgun/orchestrator/deployment_serializers.py b/nailgun/nailgun/orchestrator/deployment_serializers.py
22 index 77fcba1..fd33b3f 100644
23 --- a/nailgun/nailgun/orchestrator/deployment_serializers.py
24 +++ b/nailgun/nailgun/orchestrator/deployment_serializers.py
25 @@ -284,4 +284,11 @@ class DeploymentMultinodeSerializer(object):
26
27 +        # AArch64: Use AAVMF (guest UEFI)
28 +        if arch == 'aarch64':
29 +            properties_data = {
30 +                'hw_firmware_type': 'uefi',
31 +                'short_id': 'ubuntu16.04'
32 +            }
33 +
34          # NOTE(aschultz): properties was added as part of N and should be
35          # used infavor of glance_properties
36          image_data['glance_properties'] = self.generate_properties_arguments(