remove the --cache option and do not log to files, only to the console

This commit is contained in:
Pratham Patel 2023-08-15 09:59:06 +05:30
parent 1bbad180be
commit 8b9b6dc90a
No known key found for this signature in database

View File

@ -22,34 +22,34 @@ if ! command -v shasum > /dev/null; then
exit 1
fi
{
appliance-creator \
--config "${KICKSTARTER_FILENAME}" \
--name "${APPLIANCE_NAME}" \
--format raw \
--no-compress \
--outdir "${PWD}" \
--cache "/root/cache" \
--debug \
--verbose
# DO NOT USE THE '--checksum' OPTION BECAUSE, FOR SOME REASON
# UTF8 ERRORS ARE GENERATED DURING IMAGE CREATION
# AND THE IMAGE CREATION STEP FAILS
#--checksum \
appliance-creator \
--config "${KICKSTARTER_FILENAME}" \
--name "${APPLIANCE_NAME}" \
--format raw \
--no-compress \
--outdir "${PWD}" \
--debug \
--verbose
# DO NOT USE THE '--checksum' OPTION BECAUSE, FOR SOME REASON
# UTF8 ERRORS ARE GENERATED DURING IMAGE CREATION
# AND THE IMAGE CREATION STEP FAILS
#--checksum \
# DO NOT USE THE '--cache' OPTION SINCE IT USES OLDER VERSIONS
# OF PACKAGES, WHICH IS THE WORST WHEN TESTING CHANGES:w
#--cache "/root/cache" \
if [[ -d "${APPLIANCE_NAME}" ]]; then
if [[ -d "${APPLIANCE_NAME}" ]]; then
pushd "${APPLIANCE_NAME}" || exit 1
mv -v -f "${APPLIANCE_NAME}-sda.raw" "${IMAGE_NAME}"
zstd -9 -z "${IMAGE_NAME}"
pushd "${APPLIANCE_NAME}" || exit 1
mv -v -f "${APPLIANCE_NAME}-sda.raw" "${IMAGE_NAME}"
zstd -9 -z "${IMAGE_NAME}"
sha256sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha256"
sha512sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha512"
sha256sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha256"
sha512sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha512"
popd || exit 1
sha256sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha256"
sha512sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha512"
sha256sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha256"
sha512sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha512"
popd || exit 1
echo 'DONE'
echo "Please chown '${APPLIANCE_NAME}/' if necessary"
fi
} 1> "${APPLIANCE_NAME}.1.stdout.log" 2> "${APPLIANCE_NAME}.2.stderr.log"
echo 'DONE'
echo "Please chown '${APPLIANCE_NAME}/' if necessary"
fi