raid_create
This commit is contained in:
parent
ce6ca845bc
commit
1dfebbc35a
2 changed files with 3 additions and 3 deletions
2
sh/fs.sh
2
sh/fs.sh
|
@ -56,7 +56,7 @@ fs_make_fat() {
|
|||
fi
|
||||
}
|
||||
|
||||
fs_raid_create() {
|
||||
sh_fs_raid_create() {
|
||||
if [ -n "${4}" ]; then
|
||||
local name="${1}"
|
||||
local uuid="${2}"
|
||||
|
|
|
@ -64,7 +64,7 @@ rescue_wipe_0_init_hetzner_8_8() {
|
|||
members="${members} ${device}2"
|
||||
done
|
||||
# shellcheck disable=SC2086
|
||||
fs_raid_create \
|
||||
sh_fs_raid_create \
|
||||
"boot" "00000000:00000000:00000000:00000002" ${members}
|
||||
#
|
||||
fs_make_btrfs "/dev/md/boot" "boot" \
|
||||
|
@ -89,7 +89,7 @@ rescue_wipe_0_init_hetzner_8_8() {
|
|||
members="${members} ${device}1"
|
||||
done
|
||||
# shellcheck disable=SC2086
|
||||
fs_raid_create \
|
||||
sh_fs_raid_create \
|
||||
"crypt" "00000000:00000000:00000000:00000001" ${members}
|
||||
# encrypt
|
||||
sh_fs_luks_format "${passphrase}" "/dev/md/crypt"
|
||||
|
|
Loading…
Reference in a new issue