I am working on a custom Ubuntu Installer image, and I'm in a bit over my head.
We have a custom seed file which is running this command:
d-i preseed/early_command string /cdrom/Snare/update_v5.sh
Within that script file I have added a check that throws an error if it cannot find a file on the existing system:
if [ ! -f /target/path/to/file.gz ]; then
logger custom-partition error "File not found, upgrade aborted!"
logger custom-partition error "Please run the Upgrade Preparation script first."
exit 1
fi
When the check fails it throws a mostly useless error message and provides the option to continue on with the installation process.

How can I make it throw a useful error message and block further installation steps?