From c00ceaacaf2bde8a045461a27446bd57278adc66 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 28 Dec 2023 09:23:03 +0100 Subject: [PATCH] parted --- bash/hetzner-rescue.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index 7e79b7f..22ac7c2 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -133,7 +133,6 @@ fi function hetzner-rescue-wipe-8-8-0 { local device local devices=( - '/dev/sdc' '/dev/sda' '/dev/sdb' ) @@ -157,13 +156,13 @@ function hetzner-rescue-wipe-8-8-0 { parted "${device}" --script mktable gpt # parted "${device}" unit "${unit}" \ - mkpart "crypt-${number}" 22359 9537535 + mkpart "crypt-${number}" 33282 7630885 # parted "${device}" unit "${unit}" \ - mkpart "boot-${number}" 513 22359 + mkpart "boot-${number}" 514 33282 # parted "${device}" unit "${unit}" \ - mkpart "esp-${number}" 2 513 + mkpart "esp-${number}" 2 514 parted "${device}" set 3 esp on # parted "${device}" unit "${unit}" \ @@ -171,9 +170,6 @@ function hetzner-rescue-wipe-8-8-0 { parted "${device}" set 4 bios_grub on done # - parted "${device}" unit "${unit}" \ - mkpart 'extra' 9537535 11444223 - # number=0 for device in "${devices[@]}" ; do ((number++))