From ef87d4d410ffefa8013167d5a7d3df6211a58351 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 17:21:21 +0100 Subject: [PATCH] parted/ovh --- bash/rescue-ovh.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/bash/rescue-ovh.sh b/bash/rescue-ovh.sh index a98e8f7..a88b9af 100644 --- a/bash/rescue-ovh.sh +++ b/bash/rescue-ovh.sh @@ -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