diff --git a/shell/rescue/hetzner.sh b/shell/rescue/hetzner.sh index b14d5c7..48ea37e 100644 --- a/shell/rescue/hetzner.sh +++ b/shell/rescue/hetzner.sh @@ -61,12 +61,12 @@ rescue_wipe_0_init_hetzner_8_8() { fs_wipe "${device}2" "1G" 1 done # - members=() + members="" for device in "${@}"; do - members+=("${device}2") + members="${members} ${device}2" done fs_raid_create \ - "boot" "00000000:00000000:00000000:00000002" "${members[@]}" + "boot" "00000000:00000000:00000000:00000002" ${members} # fs_make_btrfs "/dev/md/boot" "boot" \ "00000000-0000-0000-0000-00000000000b" @@ -85,12 +85,12 @@ rescue_wipe_0_init_hetzner_8_8() { fs_wipe "${device}1" "1G" 1 done # - members=() + members="" for device in "${@}"; do - members+=("${device}1") + members="${members} ${device}1" done fs_raid_create \ - "crypt" "00000000:00000000:00000000:00000001" "${members[@]}" + "crypt" "00000000:00000000:00000000:00000001" ${members} # encrypt luks_format "${passphrase}" "/dev/md/crypt" # open