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 \ mkfs.vfat \
-F 32 \ -F 32 \
-S 4096 \ -S 4096 \
-i "000000b${number}" \ -i "0000000${number}" \
-n "esp-${number}" \ -n "esp-${number}" \
"${device}3" "${device}3"
done done
@ -209,7 +209,7 @@ function hetzner-rescue-wipe-8-8-0 {
done done
mkfs.btrfs --force \ mkfs.btrfs --force \
--label 'boot' \ --label 'boot' \
--uuid '00000000-0000-0000-0000-0000000000b0' \ --uuid '00000000-0000-0000-0000-00000000000b' \
--checksum 'sha256' \ --checksum 'sha256' \
--data 'raid0' \ --data 'raid0' \
"${members[@]}" "${members[@]}"
@ -230,7 +230,7 @@ function hetzner-rescue-wipe-8-8-0 {
mdadm \ mdadm \
--create '/dev/md/crypt' \ --create '/dev/md/crypt' \
--name 'crypt' \ --name 'crypt' \
--uuid '00000000:00000000:00000000:000000cc' \ --uuid '00000000:00000000:00000000:00000000' \
--metadata 1 \ --metadata 1 \
--level 0 \ --level 0 \
--raid-devices ${#devices[@]} \ --raid-devices ${#devices[@]} \
@ -285,10 +285,11 @@ function hetzner-rescue-wipe-8-8-2 {
echo "${passphrase}" \ echo "${passphrase}" \
| cryptsetup luksOpen '/dev/md/crypt' 'crypt' | cryptsetup luksOpen '/dev/md/crypt' 'crypt'
# format data # format data
mkfs.ext4 \ mkfs.btrfs --force \
-L 'data' \ --label 'crypt' \
-U '006234a0-eb29-a3a8-471d-bd5ec4bada55' \ --uuid '00000000-0000-0000-0000-00000000000c' \
'/dev/mapper/crypt-data' --checksum 'sha256' \
'/dev/mapper/crypt'
# format swap # format swap
mkswap \ mkswap \
--label 'swap' \ --label 'swap' \