diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-10 13:13:06 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-10 13:13:06 -0300 |
commit | 35104e0345c476509b64c66857d638712c7700a0 (patch) | |
tree | dfa65d79746bd2737668d273a1b8affe764d913e /tools/builder_common.sh | |
parent | 8f58b51b15a37311e10bf36285a239019bc07c22 (diff) | |
download | pfsense-35104e0345c476509b64c66857d638712c7700a0.zip pfsense-35104e0345c476509b64c66857d638712c7700a0.tar.gz |
Move internal variable to be local inside function
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 24e8fd4..f49cf39 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -845,6 +845,9 @@ create_ova_image() { mkdir -p ${OVA_TMP} + # 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)) + # Prepare folder to be put in image customize_stagearea_for_image "ova" install_default_kernel ${DEFAULT_KERNEL} "no" |