This commit is contained in:
Marc Beninca 2023-12-28 09:23:03 +01:00
parent 9e9434e8e0
commit c00ceaacaf

View file

@ -133,7 +133,6 @@ fi
function hetzner-rescue-wipe-8-8-0 {
local device
local devices=(
'/dev/sdc'
'/dev/sda'
'/dev/sdb'
)
@ -157,13 +156,13 @@ function hetzner-rescue-wipe-8-8-0 {
parted "${device}" --script mktable gpt
#
parted "${device}" unit "${unit}" \
mkpart "crypt-${number}" 22359 9537535
mkpart "crypt-${number}" 33282 7630885
#
parted "${device}" unit "${unit}" \
mkpart "boot-${number}" 513 22359
mkpart "boot-${number}" 514 33282
#
parted "${device}" unit "${unit}" \
mkpart "esp-${number}" 2 513
mkpart "esp-${number}" 2 514
parted "${device}" set 3 esp on
#
parted "${device}" unit "${unit}" \
@ -171,9 +170,6 @@ function hetzner-rescue-wipe-8-8-0 {
parted "${device}" set 4 bios_grub on
done
#
parted "${device}" unit "${unit}" \
mkpart 'extra' 9537535 11444223
#
number=0
for device in "${devices[@]}" ; do
((number++))