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
}
function hetzner-rescue-wipe-8-8-0 {
function hetzner-rescue-wipe-8-8-0-init {
local device
local devices=(
'/dev/sda'
@ -259,13 +259,13 @@ function hetzner-rescue-wipe-8-8-0 {
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
}
function hetzner-rescue-wipe-8-8-1 {
function hetzner-rescue-wipe-8-8-1-zero {
# wipe crypt
dd status='progress' \
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
# close
cryptsetup luksClose 'crypt'