This tutorial by user kunst1080 shows us how to get an FreeBSD automatic installation set up using bsdinstall. *Note that this is a translated article.
Now, we take a look at how to install to ZFS using bsdinstall.
Installation of ZFS in an auto layout
As it is described in the manual, to the first half (PREAMBLE), if describe the environment variable “ZFSBOOT_DISKS” instead of “PARTITIONS”, ZFS allows you to install to.
However, care must be taken of the following two points.
- If you want to automatically install, set environment variable “nonInteractive”.
- It needs to be export environment variables “ZFSBOOT_DISKS” and “nonInteractive”.
In particular, care must be taken with regard to the second point.
(I tried to read freebsd/script at master · freebsd/freebsd · GitHub, I am feeling that because DISTRIBUTIONS has been export, but such ZFSBOOT_DISKS has not been export, …… and it is the cause)
First half (PREAMBLE)