This commit is contained in:
Marc Beninca 2023-10-03 11:46:51 +02:00
parent 10aa0b80b5
commit f796532025

View file

@ -215,6 +215,15 @@ function hetzner-rescue-wipe-12-10-10-0 {
--raid-devices ${#devices[@]} \ --raid-devices ${#devices[@]} \
"${members[@]}" "${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=() members=()
for device in "${devices[@]}" ; do for device in "${devices[@]}" ; do
members+=("${device}1") members+=("${device}1")