From 0f8bfe287511f484c93025843b492eeddcc9714c Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 25 Nov 2021 04:47:59 -0600 Subject: [PATCH] Added further exit conditions --- Misc/Arch-LuksCrpy-Install.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Misc/Arch-LuksCrpy-Install.bash b/Misc/Arch-LuksCrpy-Install.bash index 06769d1..42658de 100755 --- a/Misc/Arch-LuksCrpy-Install.bash +++ b/Misc/Arch-LuksCrpy-Install.bash @@ -243,9 +243,9 @@ install() { sfdisk --delete "${install_path}" >/dev/null log "info" "Wiped partitions on $(important "${install_disk}")" log "info" "Securely erasing remaining data on $(important "${install_disk}")" - # echo YES | cryptsetup open --type plain -d /dev/urandom "${install_path}" to_be_wiped > /dev/null - # dd bs=1M if=/dev/zero of=/dev/mapper/to_be_wiped status=progress 2> /dev/null - # cryptsetup close to_be_wiped + # echo YES | cryptsetup open --type plain -d /dev/urandom "${install_path}" to_be_wiped > /dev/null || exit + # dd bs=1M if=/dev/zero of=/dev/mapper/to_be_wiped status=progress 2> /dev/null || exit + # cryptsetup close to_be_wiped || exit log "info" "Writing new partitions to $(important "${install_disk}")" (echo n echo @@ -270,7 +270,7 @@ install() { mount /dev/mapper/cryptroot /mnt mkdir /mnt/boot - mount "${install_path}" /mnt/boot/ + mount "${install_path}" /mnt/boot local mem_amount mem_amount="$(grep MemTotal /proc/meminfo | tr -s " " | cut -d " " -f2)" mem_amount=$(( mem_amount * 3/2 / 1000 ))