ezjail and allow.mount.zfs on 9.1
Jase Thew
jase at FreeBSD.org
Fri Jan 25 22:09:34 UTC 2013
On 25/01/2013 19:36, Russell Poyner wrote:
> An earlier thread discussed the issues involved with allowing jails to
> mount zfs filesystems.
>
> here:
> http://freebsd.1045724.n5.nabble.com/9-1-PRERELEASE-allow-mount-allow-mount-zfs-do-not-get-passed-to-child-td5740553.html#a5742453
>
>
> I can get it to work if I do:
> jail -m jid=12 allow.mount.zfs
>
> on the running jail, but I'm at a loss to figure out how to make the
> setting survive a restart of the jail.
>
> Is there a way to get ezjail to honor the new /etc/jail.conf file?
>
> Or could someone post an example of how to set this using the
> /usr/local/etc/ezjail/JAILNAME
> file?
>
> Thanks
> Russ Poyner
Hi Russ,
Since the introduction of jail_<name>_parameters support in
/etc/rc.d/jail, you can add a line to your
/usr/local/etc/ezjail/<jailname> config file to pass jail start-time
parameters.
eg. export jail_<jailname>_parameters="allow.mount=1 allow.raw_sockets=1
etc."
Regards,
Jase.
--
Jase Thew
jase at FreeBSD.org
FreeBSD Ports Committer
More information about the freebsd-jail
mailing list