Exit if cryptsetup fails
This commit is contained in:
parent
6377d2867a
commit
cfa70dec32
@ -260,7 +260,7 @@ install() {
|
|||||||
echo w) | gdisk "${install_path}"
|
echo w) | gdisk "${install_path}"
|
||||||
log "info" "Wrote partitions"
|
log "info" "Wrote partitions"
|
||||||
log "info" "Encrypting $(important "${install_disk}"), if you are prompted type $(important "YES")"
|
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}")"
|
log "info" "Requesting opening of $(important "${install_disk}")"
|
||||||
cryptsetup open "${install_path}" cryptroot
|
cryptsetup open "${install_path}" cryptroot
|
||||||
log "info" "Creating file systems..."
|
log "info" "Creating file systems..."
|
||||||
|
Loading…
Reference in New Issue
Block a user