This commit is contained in:
Marc Beninca 2024-11-16 13:31:52 +01:00
parent 014ac219ac
commit 0c6f8d6dd7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -61,12 +61,12 @@ rescue_wipe_0_init_hetzner_8_8() {
fs_wipe "${device}2" "1G" 1 fs_wipe "${device}2" "1G" 1
done done
# #
members=() members=""
for device in "${@}"; do for device in "${@}"; do
members+=("${device}2") members="${members} ${device}2"
done done
fs_raid_create \ fs_raid_create \
"boot" "00000000:00000000:00000000:00000002" "${members[@]}" "boot" "00000000:00000000:00000000:00000002" ${members}
# #
fs_make_btrfs "/dev/md/boot" "boot" \ fs_make_btrfs "/dev/md/boot" "boot" \
"00000000-0000-0000-0000-00000000000b" "00000000-0000-0000-0000-00000000000b"
@ -85,12 +85,12 @@ rescue_wipe_0_init_hetzner_8_8() {
fs_wipe "${device}1" "1G" 1 fs_wipe "${device}1" "1G" 1
done done
# #
members=() members=""
for device in "${@}"; do for device in "${@}"; do
members+=("${device}1") members="${members} ${device}1"
done done
fs_raid_create \ fs_raid_create \
"crypt" "00000000:00000000:00000000:00000001" "${members[@]}" "crypt" "00000000:00000000:00000000:00000001" ${members}
# encrypt # encrypt
luks_format "${passphrase}" "/dev/md/crypt" luks_format "${passphrase}" "/dev/md/crypt"
# open # open