Right, I'm stumped. I got a Raspberry Pi4B with FreeBSD 14.3-RELEASE on it. I'm hoping to use this for a few workloads that I'd like to separate into their own jails. This works fine on my AMD64 server elsewhere, but not on the Pi:
Inside the jail, I tried both MySQL 8.0 and MariaDB 10.6. Both fail to start and throw permission errors regarding /var/db/mysql. No files appear there at all, ever, no matter what I do. The mysql user simply won't write anything there, even though it has every permission to do so.
When I install either of the two database applications directly onto the host, nothing is wrong and things just start up fine. Am I missing something critical in my jail configuration? I'm running off the standard Raspberry Pi image, so it's all one big UFS filesystem.
Code:
test {
host.hostname = "test.area536.com";
allow.raw_sockets;
allow.mlock;
allow.sysvipc;
allow.mount;
allow.mount.devfs;
allow.mount.nullfs;
allow.mount.procfs;
enforce_statfs = 0;
vnet;
devfs_ruleset=7;
mount.devfs;
exec.prestart = "ifconfig epair2 create up";
exec.prestart += "ifconfig epair2a up";
exec.prestart += "ifconfig bridge0 addm epair2a up";
vnet.interface = "epair2b";
path = "/j/test";
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.poststop = "ifconfig epair2a destroy";
}
Inside the jail, I tried both MySQL 8.0 and MariaDB 10.6. Both fail to start and throw permission errors regarding /var/db/mysql. No files appear there at all, ever, no matter what I do. The mysql user simply won't write anything there, even though it has every permission to do so.
When I install either of the two database applications directly onto the host, nothing is wrong and things just start up fine. Am I missing something critical in my jail configuration? I'm running off the standard Raspberry Pi image, so it's all one big UFS filesystem.