functions

This commit is contained in:
Marc Beninca 2023-12-28 17:18:17 +01:00
parent c31db13ebf
commit 5a76c09cb1

View file

@ -130,7 +130,7 @@ else
fi fi
} }
function hetzner-rescue-wipe-8-8-0 { function hetzner-rescue-wipe-8-8-0-init {
local device local device
local devices=( local devices=(
'/dev/sda' '/dev/sda'
@ -259,13 +259,13 @@ function hetzner-rescue-wipe-8-8-0 {
| cryptsetup luksOpen '/dev/md/crypt' 'crypt' | cryptsetup luksOpen '/dev/md/crypt' 'crypt'
} }
function hetzner-rescue-wipe-8-8-1 { function hetzner-rescue-wipe-8-8-1-zero {
# wipe crypt # wipe crypt
dd status='progress' \ dd status='progress' \
if='/dev/zero' of='/dev/mapper/crypt' bs='8G' if='/dev/zero' of='/dev/mapper/crypt' bs='8G'
} }
function hetzner-rescue-wipe-8-8-2 { function hetzner-rescue-wipe-8-8-2-make {
local passphrase local passphrase
# close # close
cryptsetup luksClose 'crypt' cryptsetup luksClose 'crypt'