This commit is contained in:
Marc Beninca 2024-11-11 18:02:21 +01:00
parent 6b81ee0a5a
commit c4fcfbdca2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 5 additions and 11 deletions

View file

@ -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

View file

@ -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

View file

@ -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" &&