From f796532025782f4f1bffa848f8f23fcf50237da9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 3 Oct 2023 11:46:51 +0200 Subject: [PATCH] head --- bash/hetzner-rescue.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index dcaf24f..d7b6bd0 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -215,6 +215,15 @@ function hetzner-rescue-wipe-12-10-10-0 { --raid-devices ${#devices[@]} \ "${members[@]}" # + number=0 + for device in "${devices[@]}" ; do + ((number++)) + echo ; echo "#${number}: ${device}1" + # wipe crypt head + dd status='progress' \ + if='/dev/zero' of="${device}1" bs='1G' count=1 + done + # members=() for device in "${devices[@]}" ; do members+=("${device}1")