diff --git a/projects/Generic/config/ovf.template b/projects/Generic/config/ovf.template index f39e5505ca..7184beb6cf 100644 --- a/projects/Generic/config/ovf.template +++ b/projects/Generic/config/ovf.template @@ -2,11 +2,11 @@ xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + Virtual disk information - + The list of logical networks @@ -21,8 +21,8 @@ xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemS Meta-information about the installed software LibreELEC LibreELEC - http://libreelec.tv - http://libreelec.tv + https://libreelec.tv + https://libreelec.tv A human-readable annotation @@ -49,10 +49,10 @@ xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemS byte * 2^20 Memory Size - 512MB of memory + 1024MB of memory 2 4 - 512 + 1024 0 diff --git a/projects/Generic/options b/projects/Generic/options index 3436208273..7c4e1691fc 100644 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -98,3 +98,6 @@ # for a list of additional drivers see packages/linux-driver-addons # Space separated list is supported, DRIVER_ADDONS="crazycat digital_devices dvb-latest" + + # Default size of the ova image, in MB, eg. 4096 + OVA_SIZE="4096" diff --git a/scripts/mkimage b/scripts/mkimage index b545ac7162..908245f7fd 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -307,7 +307,7 @@ if [ "${PROJECT}" = "Generic" ]; then qemu-img convert -O vmdk -o subformat=streamOptimized "${DISK_BASENAME}.tmp" "${DISK_BASENAME}.vmdk" # generate ovf from template sed -e "s,@DISTRO@,${DISTRO},g" -e "s,@DISK@,${IMAGE_NAME},g" \ - -e "s,@DISK_SIZE@,$((${DISK_SIZE}*1024*1024)),g" \ + -e "s,@OVA_SIZE@,$(($OVA_SIZE*1024*1024)),g" \ "${PROJECT_DIR}/${PROJECT}/config/ovf.template" > "${DISK_BASENAME}.ovf" # combine ovf and vmdk into official ova tar -C "${TARGET_IMG}" -cf "${DISK_BASENAME}.ova" "${IMAGE_NAME}.ovf" "${IMAGE_NAME}.vmdk"