mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Add support for signed VMware OVF (ref T14).
This commit is contained in:
parent
c5df2dd17d
commit
a0a10a1057
6
Makefile
6
Makefile
@ -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:
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user