mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make sure OVA disk is UFS2 and also enable SUJ
This commit is contained in:
parent
c9b3608896
commit
85bc1c63c5
@ -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 \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user