ZFSBOOT_DATASETSに
"ファイルシステムの絶対パス名 zfsオプション"
の形式でZFSパーティションを記述
/$ZFSBOOT_BEROOT_NAME mountpoint=none /$ZFSBOOT_BEROOT_NAME/$ZFSBOOT_BOOTFS_NAME mountpoint=/ /tmp mountpoint=/tmp,exec=on,setuid=off /usr mountpoint=/usr,canmount=off /usr/home /usr/ports setuid=off /usr/src /var mountpoint=/var,canmount=off /var/audit exec=off,setuid=off /var/crash exec=off,setuid=off /var/log exec=off,setuid=off /var/mail atime=on /var/tmp setuid=off
ZFSBOOT_BEROOT_NAMEおよびZFSBOOT_BOOTFS_NAMEはデフォルトでは
ZFSBOOT_BEROOT_NAME=ROOT, ZFSBOOT_BOOTFS_NAME=default
gpart create -s gpt "$ZFSBOOT_DISKS"
gpart create -s gpt "$ZFSBOOT_DISKS" gpart set -a lenovofix "$ZFSBOOT_DISKS"
gpart create -s gpt "$ZFSBOOT_DISKS" gpart set -a active "$ZFSBOOT_DISKS"
gpart create -s mbr "$ZFSBOOT_DISKS" gpart bootcode -b "/boot/mbr" "$ZFSBOOT_DISKS"
指定可能な値
ZFSBOOT_FORCE_4K_SECTORS=1 の時のみ align_small="-a 4k"
gpart add $align_small -l efiboot0 -t efi -s 800k "$ZFSBOOT_DISKS" gpart bootcode -p "/boot/boot1.efifat" -i 1 "$ZFSBOOT_DISKS"
gpart add $align_small -l efiboot0 -t efi -s 800k "$ZFSBOOT_DISKS" gpart bootcode -p "/boot/boot1.efifat" -i 1 "$ZFSBOOT_DISKS" gpart add $align_small -l gptboot0 -t freebsd-boot -s 512k "$ZFSBOOT_DISKS" gpart bootcode -b "/boot/pmbr" -p "/boot/gptzfsboot" -i 2 "$ZFSBOOT_DISKS"
gpart add $align_small -l gptboot0 -t freebsd-boot -s 512k "$ZFSBOOT_DISKS" gpart bootcode -b "/boot/pmbr" -p "/boot/gptzfsboot" -i 1 "$ZFSBOOT_DISKS"