From c56630d7b33c36542f5afb9fc13b56e69711a16c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 28 Sep 2017 11:27:48 -0300 Subject: Increase reserved space for loader/boot to 128Kb to make 8Gb disk size to fit --- tools/builder_common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/builder_common.sh b/tools/builder_common.sh index d238d1d..fbdd872 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -329,8 +329,8 @@ create_ova_image() { if [ -z "${OVA_SWAP_PART_SIZE_IN_GB}" -o "${OVA_SWAP_PART_SIZE_IN_GB}" = "0" ]; then # first partition size (freebsd-ufs) local OVA_FIRST_PART_SIZE_IN_GB=${VMDK_DISK_CAPACITY_IN_GB} - # Calculate real first partition size, removing 128 blocks (65536 bytes) beginning/loader - local OVA_FIRST_PART_SIZE=$((${OVA_FIRST_PART_SIZE_IN_GB}*1024*1024*1024-65536)) + # Calculate real first partition size, removing 256 blocks (131072 bytes) beginning/loader + local OVA_FIRST_PART_SIZE=$((${OVA_FIRST_PART_SIZE_IN_GB}*1024*1024*1024-131072)) # Unset swap partition size variable unset OVA_SWAP_PART_SIZE # Parameter used by mkimg @@ -340,8 +340,8 @@ create_ova_image() { local OVA_FIRST_PART_SIZE_IN_GB=$((VMDK_DISK_CAPACITY_IN_GB-OVA_SWAP_PART_SIZE_IN_GB)) # Use first partition size in g local OVA_FIRST_PART_SIZE="${OVA_FIRST_PART_SIZE_IN_GB}g" - # Calculate real swap size, removing 128 blocks (65536 bytes) beginning/loader - local OVA_SWAP_PART_SIZE=$((${OVA_SWAP_PART_SIZE_IN_GB}*1024*1024*1024-65536)) + # Calculate real swap size, removing 256 blocks (131072 bytes) beginning/loader + local OVA_SWAP_PART_SIZE=$((${OVA_SWAP_PART_SIZE_IN_GB}*1024*1024*1024-131072)) # Parameter used by mkimg local OVA_SWAP_PART_PARAM="-p freebsd-swap/swap0::${OVA_SWAP_PART_SIZE}" fi -- cgit v1.1