crypt/btrfs

This commit is contained in:
Marc Beninca 2023-12-28 12:40:43 +01:00
parent 5ab4a0054a
commit 2b1610bbe6

View file

@ -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' \