This commit is contained in:
Marc Beninca 2023-10-03 05:29:11 +02:00
parent 74a27a077c
commit 3ac8efc19d

View file

@ -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