Allow word splitting for mirror use case

This commit is contained in:
Kris Lamoureux 2022-11-28 02:17:04 -05:00
parent c4cf616f7b
commit 5e6dc73ce5
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -56,6 +56,7 @@ function disk_format () {
}
function create_boot_pool () {
# shellcheck disable=SC2086
zpool create -f \
-o ashift=12 \
-o autotrim=on -d \
@ -79,10 +80,11 @@ function create_boot_pool () {
-O normalization=formD \
-O relatime=on \
-O canmount=off -O mountpoint=/boot -R "$1" \
bpool "$2"
bpool $2
}
function create_root_pool () {
# shellcheck disable=SC2086
echo "$3" | zpool create -f \
-o ashift=12 \
-o autotrim=on \
@ -92,7 +94,7 @@ function create_root_pool () {
-O normalization=formD \
-O relatime=on \
-O canmount=off -O mountpoint=/ -R "$1" \
rpool "$2"
rpool $2
}
function mirror_grub () {