This commit is contained in:
Marc Beninca 2024-11-11 17:19:05 +01:00
parent 6419243098
commit 1f9ba3b19d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -157,22 +157,27 @@ rescue_hetzner_wipe_8_8_0_init() {
echo
echo "#${number}: ${device}"
#
parted "${device}" --script \
parted "${device}" \
--script \
mktable gpt
#
parted "${device}" \
unit "${unit}" mkpart "crypt-${number}" 33282 7630885
unit "${unit}" \
mkpart "crypt-${number}" 33282 7630885
#
parted "${device}" \
unit "${unit}" mkpart "boot-${number}" 514 33282
unit "${unit}" \
mkpart "boot-${number}" 514 33282
#
parted "${device}" \
unit "${unit}" mkpart "esp-${number}" 2 514
unit "${unit}" \
mkpart "esp-${number}" 2 514
parted "${device}" \
set 3 esp on
#
parted "${device}" \
unit "${unit}" mkpart "bios-${number}" 1 2
unit "${unit}" \
mkpart "bios-${number}" 1 2
parted "${device}" \
set 4 bios_grub on
done