From c4fcfbdca29dc618db4ce209bd6e2966594d1864 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 18:02:21 +0100 Subject: [PATCH] zero --- bash/rescue-hetzner.sh | 6 ------ bash/rescue-ovh.sh | 5 ----- bash/rescue.sh | 5 +++++ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/bash/rescue-hetzner.sh b/bash/rescue-hetzner.sh index 4d1100c..5a076fc 100644 --- a/bash/rescue-hetzner.sh +++ b/bash/rescue-hetzner.sh @@ -151,12 +151,6 @@ rescue_hetzner_wipe_8_8_0_init() { 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() { local passphrase # close diff --git a/bash/rescue-ovh.sh b/bash/rescue-ovh.sh index 0b26d0d..1b7af69 100644 --- a/bash/rescue-ovh.sh +++ b/bash/rescue-ovh.sh @@ -80,11 +80,6 @@ rescue_ovh_wipe_vle2_0_init() { 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() { local passphrase # crypt / close diff --git a/bash/rescue.sh b/bash/rescue.sh index a23f6d9..beee576 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -138,6 +138,11 @@ source \"/etc/bash/main.sh\" ; rescue_configure \"${hostname}\"" fi } +rescue_wipe_1_zero() { + dd status="progress" \ + if="/dev/zero" of="/dev/mapper/crypt" bs="1G" +} + rescue_wipe_3_close() { umount "/media/boot" umount "/media/crypt" &&