From 0c6f8d6dd7f49a11208ebed3414eb8fb439785d9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 13:31:52 +0100 Subject: [PATCH] members --- shell/rescue/hetzner.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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