Exit if cryptsetup fails

This commit is contained in:
Price Hiller 2021-11-25 04:36:13 -06:00
parent 6377d2867a
commit cfa70dec32

View File

@ -260,7 +260,7 @@ install() {
echo w) | gdisk "${install_path}"
log "info" "Wrote partitions"
log "info" "Encrypting $(important "${install_disk}"), if you are prompted type $(important "YES")"
cryptsetup -y -v luksFormat "${install_path}"
cryptsetup -y -v luksFormat "${install_path}" || exit
log "info" "Requesting opening of $(important "${install_disk}")"
cryptsetup open "${install_path}" cryptroot
log "info" "Creating file systems..."