diff options
| author | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2018-01-03 12:01:13 +0100 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2018-01-03 12:02:27 +0100 |
| commit | 750d6ff65f482d65f0ce4b07e086608b3e51d0de (patch) | |
| tree | 5a457651f20b6b2fbf2360f9c6410f0133945ea5 /tools | |
| parent | 54351ebae22fcdf78a331523a2a065800b9fad86 (diff) | |
| download | kolla-ansible-750d6ff65f482d65f0ce4b07e086608b3e51d0de.tar.gz kolla-ansible-750d6ff65f482d65f0ce4b07e086608b3e51d0de.zip | |
init-runonce: use UEFI on aarch64
Nova does not yet defaults to UEFI ;(
Change-Id: I9f26d373f73d15fa571545b3c867beb07da88f48
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/init-runonce | 8 |
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 \ |
