This commit is contained in:
Marc Beninca 2023-10-03 11:43:10 +02:00
parent 6f752c3afc
commit 10aa0b80b5

View file

@ -177,7 +177,7 @@ function hetzner-rescue-wipe-12-10-10-0 {
number=0
for device in "${devices[@]}" ; do
((number++))
echo ; echo "#${number}: ${device}"
echo ; echo "#${number}: ${device}4"
# wipe bios
dd \
if='/dev/zero' of="${device}4"
@ -186,7 +186,7 @@ function hetzner-rescue-wipe-12-10-10-0 {
number=0
for device in "${devices[@]}" ; do
((number++))
echo ; echo "#${number}: ${device}"
echo ; echo "#${number}: ${device}3"
# format esp
dd \
if='/dev/zero' of="${device}3" bs='1M'
@ -196,7 +196,7 @@ function hetzner-rescue-wipe-12-10-10-0 {
number=0
for device in "${devices[@]}" ; do
((number++))
echo ; echo "#${number}: ${device}"
echo ; echo "#${number}: ${device}2"
# wipe boot
dd status='progress' \
if='/dev/zero' of="${device}2" bs='1G'