You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
deployment-iso/templates/scripts/includes/verify_iso_image.sh

16 lines
453 B

#!/bin/bash
set -e
message="Do you want to check the install media?"
if dialog --yes-label Yes --no-label Skip --yesno "${message}" 0 0 ; then
if ! result="$( { checkisomd5 /dev/sr0 1>/dev/null; } 2>&1 )" ; then
err_message="Integrity check failed. Reason: ${result}. Abort installation or continue anyway?"
if dialog --yes-label Exit --no-label Continue --yesno "${err_message}" 0 0 ; then
exit 1
else
exit 0
fi
fi
fi