diff options
author | Renato Botelho <renato@netgate.com> | 2017-09-28 11:27:48 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-09-28 11:28:11 -0300 |
commit | c56630d7b33c36542f5afb9fc13b56e69711a16c (patch) | |
tree | c9b72ba00393b30b6a12083c18ae53051d76208a | |
parent | 1b30618fbece04b9f3458be9e8ee218faf19c3dc (diff) | |
download | pfsense-c56630d7b33c36542f5afb9fc13b56e69711a16c.zip pfsense-c56630d7b33c36542f5afb9fc13b56e69711a16c.tar.gz |
Increase reserved space for loader/boot to 128Kb to make 8Gb disk size to fit
-rw-r--r-- | tools/builder_common.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |