aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-01-03 18:33:01 +0000
committerGerrit Code Review <review@openstack.org>2018-01-03 18:33:01 +0000
commit8408bb6e075dabdb761a1bbf2bd39bba1ecf0242 (patch)
tree343611fc7dde3b6ed7237b230cb402d5084973b9 /tools
parent83ba36c5fd666848afa8bea7b446dadf1b733f09 (diff)
parent750d6ff65f482d65f0ce4b07e086608b3e51d0de (diff)
downloadkolla-ansible-8408bb6e075dabdb761a1bbf2bd39bba1ecf0242.tar.gz
kolla-ansible-8408bb6e075dabdb761a1bbf2bd39bba1ecf0242.zip
Merge "init-runonce: use UEFI on aarch64"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/init-runonce8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/init-runonce b/tools/init-runonce
index 607f18350..0a6222c35 100755
--- a/tools/init-runonce
+++ b/tools/init-runonce
@@ -49,9 +49,15 @@ echo Downloading glance image.
if ! [ -f "${IMAGE}" ]; then
curl -L -o ./${IMAGE} ${IMAGE_URL}/${IMAGE}
fi
+
+EXTRA_PROPERTIES=
+if [ ${ARCH} == aarch64 ]; then
+ EXTRA_PROPERTIES="--property hw_firmware_type=uefi"
+fi
+
echo Creating glance image.
openstack image create --disk-format qcow2 --container-format bare --public \
- --property os_type=${IMAGE_TYPE} --file ./${IMAGE} ${IMAGE_NAME}
+ --property os_type=${IMAGE_TYPE} ${EXTRA_PROPERTIES} --file ./${IMAGE} ${IMAGE_NAME}
echo Configuring neutron.
openstack network create --external --provider-physical-network physnet1 \