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 /!\\"
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}" set 3 esp on
parted "${device}" \
unit "${unit}" \
mkpart "esp" 2 514
parted "${device}" \
set 3 esp on
#
parted "${device}" unit "${unit}" mkpart bios 1 2
parted "${device}" set 4 bios_grub on
parted "${device}" \
unit "${unit}" \
mkpart bios 1 2
parted "${device}" \
set 4 bios_grub on
# bios / wipe
dd if="/dev/zero" of="${device}4"
# esp / wipe