This commit is contained in:
Marc Beninca 2023-10-04 08:24:22 +02:00
parent f796532025
commit abc7186d57

View file

@ -262,12 +262,12 @@ function hetzner-rescue-wipe-12-10-10-0 {
# wipe crypt # wipe crypt
dd status='progress' \ dd status='progress' \
if='/dev/zero' of='/dev/mapper/crypt' bs='16G' if='/dev/zero' of='/dev/mapper/crypt' bs='16G'
# close
cryptsetup luksClose 'crypt'
} }
function hetzner-rescue-wipe-12-10-10-1 { function hetzner-rescue-wipe-12-10-10-1 {
local passphrase local passphrase
# close
cryptsetup luksClose 'crypt'
# read passphrase # read passphrase
echo -n 'PassPhrase: ' echo -n 'PassPhrase: '
read -r -s passphrase read -r -s passphrase