zero
This commit is contained in:
parent
6b81ee0a5a
commit
c4fcfbdca2
3 changed files with 5 additions and 11 deletions
|
@ -151,12 +151,6 @@ rescue_hetzner_wipe_8_8_0_init() {
|
||||||
cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
||||||
}
|
}
|
||||||
|
|
||||||
rescue_hetzner_wipe_8_8_1_zero() {
|
|
||||||
# wipe crypt
|
|
||||||
dd status='progress' \
|
|
||||||
if='/dev/zero' of='/dev/mapper/crypt' bs='8G'
|
|
||||||
}
|
|
||||||
|
|
||||||
rescue_hetzner_wipe_8_8_2_make() {
|
rescue_hetzner_wipe_8_8_2_make() {
|
||||||
local passphrase
|
local passphrase
|
||||||
# close
|
# close
|
||||||
|
|
|
@ -80,11 +80,6 @@ rescue_ovh_wipe_vle2_0_init() {
|
||||||
cryptsetup luksOpen "${device}1" "crypt"
|
cryptsetup luksOpen "${device}1" "crypt"
|
||||||
}
|
}
|
||||||
|
|
||||||
rescue_ovh_wipe_vle2_1_zero() {
|
|
||||||
# crypt / zero
|
|
||||||
dd status="progress" if="/dev/zero" of="/dev/mapper/crypt" bs="1G"
|
|
||||||
}
|
|
||||||
|
|
||||||
rescue_ovh_wipe_vle2_2_make() {
|
rescue_ovh_wipe_vle2_2_make() {
|
||||||
local passphrase
|
local passphrase
|
||||||
# crypt / close
|
# crypt / close
|
||||||
|
|
|
@ -138,6 +138,11 @@ source \"/etc/bash/main.sh\" ; rescue_configure \"${hostname}\""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rescue_wipe_1_zero() {
|
||||||
|
dd status="progress" \
|
||||||
|
if="/dev/zero" of="/dev/mapper/crypt" bs="1G"
|
||||||
|
}
|
||||||
|
|
||||||
rescue_wipe_3_close() {
|
rescue_wipe_3_close() {
|
||||||
umount "/media/boot"
|
umount "/media/boot"
|
||||||
umount "/media/crypt" &&
|
umount "/media/crypt" &&
|
||||||
|
|
Loading…
Reference in a new issue