From 1f9ba3b19d72b698b2d53f8d2eac56a631c190d4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 17:19:05 +0100 Subject: [PATCH] parted --- bash/rescue-hetzner.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/bash/rescue-hetzner.sh b/bash/rescue-hetzner.sh index d170c95..ab7d379 100644 --- a/bash/rescue-hetzner.sh +++ b/bash/rescue-hetzner.sh @@ -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