From 750d6ff65f482d65f0ce4b07e086608b3e51d0de Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 3 Jan 2018 12:01:13 +0100 Subject: [PATCH] init-runonce: use UEFI on aarch64 Nova does not yet defaults to UEFI ;( Change-Id: I9f26d373f73d15fa571545b3c867beb07da88f48 --- tools/init-runonce | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/init-runonce b/tools/init-runonce index 607f183504..0a6222c35e 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 \