Make sure OVA disk is UFS2 and also enable SUJ

This commit is contained in:
Renato Botelho 2016-03-21 16:44:13 -03:00
parent c9b3608896
commit 85bc1c63c5

View File

@ -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 \