From 3ac8efc19d5b749f3414c2eb445afa9f19a74e66 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 3 Oct 2023 05:29:11 +0200 Subject: [PATCH] boot --- bash/hetzner-rescue.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index 7cde848..d14dac2 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -181,6 +181,15 @@ function hetzner-rescue-wipe-12-10-10 { dd if='/dev/zero' of="${device}3" mkfs.vfat -F 32 -n "esp-${number}" "${device}3" done + # + number=0 + for device in "${devices[@]}" ; do + ((number++)) + echo ; echo "#${number}: ${device}" + # wipe boot + dd if='/dev/zero' of="${device}2" bs='1G' status='progress' + done +#### # format boot mkfs.ext4 -F -L 'boot' '/dev/sda2' # read passphrase