I want to write a script to create a jail with bsdinstall. However I can't get it to work. Running bsdinstall script ./jail-installscript.sh (where that file contains the below code) gives me the error No root partition was found. The root FreeBSD partition must have a mountpoint of '/'.
Can someone provide a small working example to get me started? Or help me find the issue with my current script?
Code:
# Part I: preamble
BSDINSTALL_CHROOT="/var/jails/_base"
BSDINSTALL_DISTSITE="ftp://ftp.nl.freebsd.org/pub/FreeBSD/releases/amd64/amd64/12.0-RELEASE"
DISTRIBUTIONS="base.txz"
# Part II: setup script
#!/bin/sh
echo Test
Can someone provide a small working example to get me started? Or help me find the issue with my current script?