Add support for signed VMware OVF (ref T14).

This commit is contained in:
Yuya Kusakabe 2016-03-08 11:17:56 +09:00
parent c5df2dd17d
commit a0a10a1057
2 changed files with 9 additions and 5 deletions

View File

@ -44,12 +44,12 @@ qemu:
@scripts/check-vm-build-env
@scripts/build-qemu-image
.PHONY: vmware-ova
.PHONY: vmware
.ONESHELL:
vmware-ova:
vmware:
@set -e
@scripts/check-vm-build-env
@scripts/build-vmware-ova
@scripts/build-vmware-image
.PHONY: clean
.ONESHELL:

View File

@ -68,7 +68,11 @@ openssl sha1 *.vmdk *.ovf > vyos_vmware_image.mf
echo 'Converting the OVF to signed OVA...'
private_key=${PRIVATE_KEY_PATH:-"../../key/privatekey.pem"}
if [ ! -f ${private_key} ]; then
echo 'Please put your key to "key" directory in repository root, or set PRIVATE_KEY_PATH to environment variables.'
echo 'Please put your key to "key/privatekey.pem" in repository root, or set PRIVATE_KEY_PATH to environment variables.'
exit 1
fi
ovftool --privateKey=${PRIVATE_KEY_PATH} vyos_vmware_image.ovf vyos_vmware_image.ova
ovftool --privateKey=${PRIVATE_KEY_PATH} vyos_vmware_image.ovf vyos_vmware_image-signed.ova
# Convert the OVF to signed OVF...
echo 'Converting the OVF to signed OVF...'
ovftool --privateKey=${PRIVATE_KEY_PATH} vyos_vmware_image.ovf vyos_vmware_image-signed.ovf