From 89f1600ca08b8cf2ee8f123b728f05d52242942f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 25 Nov 2021 04:48:27 -0600 Subject: [PATCH] Exit if cryptsetup open fails --- Misc/Arch-LuksCrpy-Install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/Arch-LuksCrpy-Install.bash b/Misc/Arch-LuksCrpy-Install.bash index 42658de..17407fa 100755 --- a/Misc/Arch-LuksCrpy-Install.bash +++ b/Misc/Arch-LuksCrpy-Install.bash @@ -262,7 +262,7 @@ install() { log "info" "Encrypting $(important "${install_disk}"), if you are prompted type $(important "YES")" cryptsetup -y -v luksFormat "${install_path}" || exit log "info" "Requesting opening of $(important "${install_disk}")" - cryptsetup open "${install_path}" cryptroot + cryptsetup open "${install_path}" cryptroot || exit log "info" "Creating file systems..." mkdfs.fat -F32 "${install_path}" mkfs.ext4 "/dev/mapper/cryptroot"