Powered by SmartDoc

5.2.2 gpart: p1→bootcode, p2→bootpool, p3→swap, p4→zroot (x=0,1,2,...,11)

# for x in 0 1 2 3 4 5 6 7 8 9 10 11; do
> gpart create -s gpt mfid$x
> gpart add -a 4k -l efiboot10 -t efi -s 200M mfid$x
> gpart bootcode -p /boot/boot1.efifat -i 1 mfid$x
> gpart add -a 1m -l boot10 -t freebsd-zfs -s 2g mfid$x
> gpart add -a 1m -l swap0 -t freebsd-swap -s 128g mfid$x
> gpart add -a 1m -l zfs0 -t freebsd-zfs mfid$x
> done