This commit is contained in:
Marc Beninca 2024-01-01 11:51:31 +01:00
parent fb02c72976
commit b272ea2181

View file

@ -212,11 +212,11 @@ function hetzner-rescue-wipe-8-8-0-init {
done done
mdadm \ mdadm \
--create '/dev/md/boot' \ --create '/dev/md/boot' \
--name 'boot' \
--uuid '00000000:00000000:00000000:00000002' \
--metadata 1 \
--level 0 \ --level 0 \
--metadata 1 \
--name 'boot' \
--raid-devices ${#devices[@]} \ --raid-devices ${#devices[@]} \
--uuid '00000000:00000000:00000000:00000002' \
"${members[@]}" "${members[@]}"
# #
mkfs.btrfs --force \ mkfs.btrfs --force \
@ -245,11 +245,11 @@ function hetzner-rescue-wipe-8-8-0-init {
done done
mdadm \ mdadm \
--create '/dev/md/crypt' \ --create '/dev/md/crypt' \
--name 'crypt' \
--uuid '00000000:00000000:00000000:00000001' \
--metadata 1 \
--level 0 \ --level 0 \
--metadata 1 \
--name 'crypt' \
--raid-devices ${#devices[@]} \ --raid-devices ${#devices[@]} \
--uuid '00000000:00000000:00000000:00000001' \
"${members[@]}" "${members[@]}"
# encrypt # encrypt
echo "${passphrase}" \ echo "${passphrase}" \