diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-21 16:44:13 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-21 16:44:13 -0300 |
commit | 85bc1c63c5b5acbb2efa04d837883bc0c775ba5a (patch) | |
tree | 885ca2397555b6a133b298346c79f869d11eac5a /tools | |
parent | c9b360889656f3ee1da231a4d23ba3d9e4bc6d3d (diff) | |
download | pfsense-85bc1c63c5b5acbb2efa04d837883bc0c775ba5a.zip pfsense-85bc1c63c5b5acbb2efa04d837883bc0c775ba5a.tar.gz |
Make sure OVA disk is UFS2 and also enable SUJ
Diffstat (limited to 'tools')
-rw-r--r-- | tools/builder_common.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 61c0933..ac862f4 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -878,7 +878,7 @@ create_ova_image() { echo -n ">>> Creating / partition... " | tee -a ${LOGFILE} makefs \ -B little \ - -o label=${PRODUCT_NAME} \ + -o label=${PRODUCT_NAME},version=2 \ -s ${OVA_FIRST_PART_SIZE} \ ${OVA_TMP}/${OVFUFS} \ ${FINAL_CHROOT_DIR} 2>&1 >> ${LOGFILE} @@ -893,6 +893,14 @@ create_ova_image() { fi echo "Done!" | tee -a ${LOGFILE} + echo -n ">>> Enabling SUJ on recently created disk... " | tee -a ${LOGFILE} + if ! tunefs -j enable ${OVA_TMP}/${OVFUFS} 2>&1 >>${LOGFILE}; then + echo "Failed!" | tee -a ${LOGFILE} + echo ">>> ERROR: Error enabling SUJ on disk. STOPPING!" | tee -a ${LOGFILE} + print_error_pfS + fi + echo "Done!" | tee -a ${LOGFILE} + # Create raw disk echo -n ">>> Creating raw disk... " | tee -a ${LOGFILE} mkimg \ |