From 2b1610bbe69b9b58938a1233e97374da3d17d98a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 28 Dec 2023 12:40:43 +0100 Subject: [PATCH] crypt/btrfs --- bash/hetzner-rescue.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index 2c9ad54..903b0d9 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -189,7 +189,7 @@ function hetzner-rescue-wipe-8-8-0 { mkfs.vfat \ -F 32 \ -S 4096 \ - -i "000000b${number}" \ + -i "0000000${number}" \ -n "esp-${number}" \ "${device}3" done @@ -209,7 +209,7 @@ function hetzner-rescue-wipe-8-8-0 { done mkfs.btrfs --force \ --label 'boot' \ - --uuid '00000000-0000-0000-0000-0000000000b0' \ + --uuid '00000000-0000-0000-0000-00000000000b' \ --checksum 'sha256' \ --data 'raid0' \ "${members[@]}" @@ -230,7 +230,7 @@ function hetzner-rescue-wipe-8-8-0 { mdadm \ --create '/dev/md/crypt' \ --name 'crypt' \ - --uuid '00000000:00000000:00000000:000000cc' \ + --uuid '00000000:00000000:00000000:00000000' \ --metadata 1 \ --level 0 \ --raid-devices ${#devices[@]} \ @@ -285,10 +285,11 @@ function hetzner-rescue-wipe-8-8-2 { echo "${passphrase}" \ | cryptsetup luksOpen '/dev/md/crypt' 'crypt' # format data - mkfs.ext4 \ - -L 'data' \ - -U '006234a0-eb29-a3a8-471d-bd5ec4bada55' \ - '/dev/mapper/crypt-data' + mkfs.btrfs --force \ + --label 'crypt' \ + --uuid '00000000-0000-0000-0000-00000000000c' \ + --checksum 'sha256' \ + '/dev/mapper/crypt' # format swap mkswap \ --label 'swap' \