For maximum compatibility and redudancy; mirrored vdev

is now always used for boot pool

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
This commit is contained in:
Maurice Zhou
2021-09-08 19:01:28 +08:00
committed by George Melikov
parent 7fe3e8ceb1
commit f121be16dc
10 changed files with 44 additions and 6 deletions

View File

@@ -43,6 +43,11 @@ System Configuration
#. Create boot pool::
disk_num=0; for i in $DISK; do disk_num=$(( $disk_num + 1 )); done
if [ $disk_num -gt 1 ]; then INST_VDEV_BPOOL=mirror; fi
zpool create \
-d -o feature@async_destroy=enabled \
-o feature@bookmarks=enabled \
@@ -67,7 +72,7 @@ System Configuration
-O mountpoint=/boot \
-R /mnt \
bpool_$INST_UUID \
$INST_VDEV \
$INST_VDEV_BPOOL \
$(for i in ${DISK}; do
printf "$i-part2 ";
done)