# install and others reference to install freebsd by zfs, and when we create boot that we follow my method as follows.
mount -t msdosfs /dev/ada0p1 /media # /dev/ada0p1 Windows10's EFI whose size is better 512M
cd /tmp
fetch https://nchc.dl.sourceforge.net/project/refind/0.13.1/refind-bin-0.13.1.zip
unzip refind-bin-0.13.1.zip
cd /media/EFI/Boot
mv bootx64.efi bootx64-windows10.efi
cp /boot/loader.efi bootx64-freebsd.efi
cp -a /tmp/refind-bin-0.13.1/refind/icons .
cp -a /tmp/refind-bin-0.13.1/refind/refind_x64.efi bootx64.efi
cp /tmp/refind-bin-0.13.1/refind/refind.conf-sample refind.conf
# vim refind.conf, append:
menuentry "FreeBSD/amd64 -CURRENT" {
loader \EFI\Boot\bootx64-freebsd.efi
icon \EFI\Boot\icons\os_freebsd.png
}
menuentry "Windows 10 Professional x64" {
loader \EFI\Boot\bootx64-windows10.efi
icon \EFI\Boot\icons\os_win.png
}
# create reFind boot
efibootmgr --create --activate --label "FreeBSD" --loader "/media/EFI/Boot/bootx64.efi"
umount /media
exit
mount -t msdosfs /dev/ada0p1 /media # /dev/ada0p1 Windows10's EFI whose size is better 512M
cd /tmp
fetch https://nchc.dl.sourceforge.net/project/refind/0.13.1/refind-bin-0.13.1.zip
unzip refind-bin-0.13.1.zip
cd /media/EFI/Boot
mv bootx64.efi bootx64-windows10.efi
cp /boot/loader.efi bootx64-freebsd.efi
cp -a /tmp/refind-bin-0.13.1/refind/icons .
cp -a /tmp/refind-bin-0.13.1/refind/refind_x64.efi bootx64.efi
cp /tmp/refind-bin-0.13.1/refind/refind.conf-sample refind.conf
# vim refind.conf, append:
menuentry "FreeBSD/amd64 -CURRENT" {
loader \EFI\Boot\bootx64-freebsd.efi
icon \EFI\Boot\icons\os_freebsd.png
}
menuentry "Windows 10 Professional x64" {
loader \EFI\Boot\bootx64-windows10.efi
icon \EFI\Boot\icons\os_win.png
}
# create reFind boot
efibootmgr --create --activate --label "FreeBSD" --loader "/media/EFI/Boot/bootx64.efi"
umount /media
exit