standalone wipe

This commit is contained in:
Marc Beninca 2023-12-28 12:00:25 +01:00
parent cbabed2017
commit 02f2f5323c

View file

@ -252,12 +252,15 @@ function hetzner-rescue-wipe-8-8-0 {
# open
echo "${passphrase}" \
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
}
function hetzner-rescue-wipe-8-8-1 {
# wipe crypt
dd status='progress' \
if='/dev/zero' of='/dev/mapper/crypt' bs='8G'
}
function hetzner-rescue-wipe-8-8-1 {
function hetzner-rescue-wipe-8-8-2 {
local passphrase
# close
cryptsetup luksClose 'crypt'