Merge "transplant.py: Allow SSH on all interfaces."
[armband.git] / patches / opnfv-fuel / 0021-Build-bootstrap-image-for-arm64.patch
1 From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
2 Date: Thu, 3 Mar 2016 19:04:07 +0100
3 Subject: [PATCH] Build bootstrap image for arm64
4
5 For now the arch is hardcoded for simplicity. We should detect this
6 but how? If we're multi-arch then one bootstrap image should be built
7 per supported arch. This requires Fuel refactoring.
8 ---
9  build/bootstrap_admin_node.sh.patch | 17 +++++++++++++++++
10  1 file changed, 17 insertions(+)
11
12 diff --git a/build/bootstrap_admin_node.sh.patch b/build/bootstrap_admin_node.sh.patch
13 --- a/build/bootstrap_admin_node.sh.patch
14 +++ b/build/bootstrap_admin_node.sh.patch
15 @@ -53,3 +53,12 @@
16   # Enable iptables
17   systemctl enable iptables.service
18 +@@ -484,7 +490,7 @@
19 +         local ret=1
20 +         echo ${bs_progress_message} >&2
21 +         set_ui_bootstrap_error "${bs_progress_message}" >&2
22 +-        if fuel-bootstrap -v --debug build --activate >>"$bs_build_log" 2>&1; then
23 ++        if fuel-bootstrap -v --debug build --target_arch arm64 --activate >>"$bs_build_log" 2>&1; then
24 +           ret=0
25 +           fuel notify --topic "done" --send "${bs_done_message}"
26 +         else
27  @@ -532,6 +545,16 @@ systemctl start ntpd