From f8344e5cf555629b1bec2e76bf0238589700ab42 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 25 Nov 2021 04:29:24 -0600 Subject: [PATCH] Fixed cryptsetup error out --- 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 c43be34..a47ac13 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 + # 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 + # cryptsetup close to_be_wiped log "info" "Writing new partitions to $(important "${install_disk}")" (echo n echo @@ -259,8 +259,8 @@ install() { echo 8300 echo w) | gdisk "${install_path}" log "info" "Wrote partitions" - log "info" "Encrypting $(important "${install_disk}")" - echo YES | cryptsetup -y -v luksFormat "${install_path}" + log "info" "Encrypting $(important "${install_disk}"), if you are prompted type $(important "YES")" + cryptsetup -y -v luksFormat "${install_path}" log "info" "Requesting opening of $(important "${install_disk}")" cryptsetup open "${install_path}" cryptroot log "info" "Creating file systems..."