raid_create

This commit is contained in:
Marc Beninca 2024-11-20 09:35:47 +01:00
parent ce6ca845bc
commit 1dfebbc35a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ fs_make_fat() {
fi fi
} }
fs_raid_create() { sh_fs_raid_create() {
if [ -n "${4}" ]; then if [ -n "${4}" ]; then
local name="${1}" local name="${1}"
local uuid="${2}" local uuid="${2}"

View file

@ -64,7 +64,7 @@ rescue_wipe_0_init_hetzner_8_8() {
members="${members} ${device}2" members="${members} ${device}2"
done done
# shellcheck disable=SC2086 # shellcheck disable=SC2086
fs_raid_create \ sh_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" \
@ -89,7 +89,7 @@ rescue_wipe_0_init_hetzner_8_8() {
members="${members} ${device}1" members="${members} ${device}1"
done done
# shellcheck disable=SC2086 # shellcheck disable=SC2086
fs_raid_create \ sh_fs_raid_create \
"crypt" "00000000:00000000:00000000:00000001" ${members} "crypt" "00000000:00000000:00000000:00000001" ${members}
# encrypt # encrypt
sh_fs_luks_format "${passphrase}" "/dev/md/crypt" sh_fs_luks_format "${passphrase}" "/dev/md/crypt"