functions
This commit is contained in:
parent
c31db13ebf
commit
5a76c09cb1
1 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue