members
This commit is contained in:
parent
014ac219ac
commit
0c6f8d6dd7
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue