Jail not starting at Boot

Wout Decré wout at canodus.be
Sun Sep 4 11:48:22 UTC 2016


Hi

I had a similar problem, not all jails started at boot. After a lot of
rebooting I found a solution.

I use exec.prestart to nullfs mount /usr/ports to {jail}/usr/ports like
so:

exec.prestart = "/sbin/mount -t nullfs -o
ro /usr/ports /usr/jails/$name/usr/ports";

The jail init script will not start a jail if this exec.prestart command
fails.

After adding nullfs_load="YES" to /boot/loader.conf (so the module is
loaded early in boot), no more problems.

Hope this will help you too.

Best regards

Wout



More information about the freebsd-questions mailing list