remove the --cache option and do not log to files, only to the console
This commit is contained in:
parent
1bbad180be
commit
8b9b6dc90a
@ -22,34 +22,34 @@ if ! command -v shasum > /dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{
|
appliance-creator \
|
||||||
appliance-creator \
|
--config "${KICKSTARTER_FILENAME}" \
|
||||||
--config "${KICKSTARTER_FILENAME}" \
|
--name "${APPLIANCE_NAME}" \
|
||||||
--name "${APPLIANCE_NAME}" \
|
--format raw \
|
||||||
--format raw \
|
--no-compress \
|
||||||
--no-compress \
|
--outdir "${PWD}" \
|
||||||
--outdir "${PWD}" \
|
--debug \
|
||||||
--cache "/root/cache" \
|
--verbose
|
||||||
--debug \
|
# DO NOT USE THE '--checksum' OPTION BECAUSE, FOR SOME REASON
|
||||||
--verbose
|
# UTF8 ERRORS ARE GENERATED DURING IMAGE CREATION
|
||||||
# DO NOT USE THE '--checksum' OPTION BECAUSE, FOR SOME REASON
|
# AND THE IMAGE CREATION STEP FAILS
|
||||||
# UTF8 ERRORS ARE GENERATED DURING IMAGE CREATION
|
#--checksum \
|
||||||
# AND THE IMAGE CREATION STEP FAILS
|
# DO NOT USE THE '--cache' OPTION SINCE IT USES OLDER VERSIONS
|
||||||
#--checksum \
|
# 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
|
pushd "${APPLIANCE_NAME}" || exit 1
|
||||||
mv -v -f "${APPLIANCE_NAME}-sda.raw" "${IMAGE_NAME}"
|
mv -v -f "${APPLIANCE_NAME}-sda.raw" "${IMAGE_NAME}"
|
||||||
zstd -9 -z "${IMAGE_NAME}"
|
zstd -9 -z "${IMAGE_NAME}"
|
||||||
|
|
||||||
sha256sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha256"
|
sha256sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha256"
|
||||||
sha512sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha512"
|
sha512sum "${IMAGE_NAME}" > "${IMAGE_NAME}.sha512"
|
||||||
sha256sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha256"
|
sha256sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha256"
|
||||||
sha512sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha512"
|
sha512sum "${COMPRESSED_IMAGE_NAME}" > "${COMPRESSED_IMAGE_NAME}.sha512"
|
||||||
popd || exit 1
|
popd || exit 1
|
||||||
|
|
||||||
echo 'DONE'
|
echo 'DONE'
|
||||||
echo "Please chown '${APPLIANCE_NAME}/' if necessary"
|
echo "Please chown '${APPLIANCE_NAME}/' if necessary"
|
||||||
fi
|
fi
|
||||||
} 1> "${APPLIANCE_NAME}.1.stdout.log" 2> "${APPLIANCE_NAME}.2.stderr.log"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user