I hadn't come this neat trick before so I'll repost a a bit of code provided by T-Daemon the other day in case someone is doing a Google search for doing such a thing.
Once again a tip of the hat to T-Daemon
Bash:
Code:
# mdconfig -u 0 FreeBSD-memstick.img
Example mount root file system:
# mount /dev/md0s2a /mnt
# cp file /mnt/root
# umount /mnt
Example mount ESP file system:
# mount_msdosfs /dev/md0s1 /mnt
# cp /boot/loader.efi /mnt/efi/boot/bootx64.efi
# umount /mnt
# mdconfig -du 0
Once again a tip of the hat to T-Daemon