parted/ovh

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

View file

@ -152,17 +152,29 @@ rescue_ovh_wipe_vle2_0_init() {
printf "%s" "WIPE ${device} /?\\ OR CANCEL /!\\" printf "%s" "WIPE ${device} /?\\ OR CANCEL /!\\"
read -r read -r
# #
parted "${device}" --script mktable gpt parted "${device}" \
--script \
mktable gpt
# #
parted "${device}" unit "${unit}" mkpart "crypt" 4610 40960 parted "${device}" \
unit "${unit}" \
mkpart "crypt" 4610 40960
# #
parted "${device}" unit "${unit}" mkpart "boot" 514 4610 parted "${device}" \
unit "${unit}" \
mkpart "boot" 514 4610
# #
parted "${device}" unit "${unit}" mkpart "esp" 2 514 parted "${device}" \
parted "${device}" set 3 esp on unit "${unit}" \
mkpart "esp" 2 514
parted "${device}" \
set 3 esp on
# #
parted "${device}" unit "${unit}" mkpart bios 1 2 parted "${device}" \
parted "${device}" set 4 bios_grub on unit "${unit}" \
mkpart bios 1 2
parted "${device}" \
set 4 bios_grub on
# bios / wipe # bios / wipe
dd if="/dev/zero" of="${device}4" dd if="/dev/zero" of="${device}4"
# esp / wipe # esp / wipe