Date: Sun, 27 Jan 2013 10:44:05 -0600 From: Russell Poyner <rpoyner@engr.wisc.edu> To: Jase Thew <jase@FreeBSD.org> Cc: freebsd-jail@freebsd.org Subject: Re: ezjail and allow.mount.zfs on 9.1 Message-ID: <A73E1DF7-2794-424B-A743-281876A79531@engr.wisc.edu> In-Reply-To: <5103028A.5050503@FreeBSD.org> References: <5102DEBC.50604@engr.wisc.edu> <5103028A.5050503@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 25, 2013, at 4:09 PM, Jase Thew wrote: > On 25/01/2013 19:36, Russell Poyner wrote: >> An earlier thread discussed the issues involved with allowing jails = to >> mount zfs filesystems. >>=20 >> here: >> = http://freebsd.1045724.n5.nabble.com/9-1-PRERELEASE-allow-mount-allow-moun= t-zfs-do-not-get-passed-to-child-td5740553.html#a5742453 >>=20 >>=20 >> I can get it to work if I do: >> jail -m jid=3D12 allow.mount.zfs >>=20 >> on the running jail, but I'm at a loss to figure out how to make the >> setting survive a restart of the jail. >>=20 >> Is there a way to get ezjail to honor the new /etc/jail.conf file? >>=20 >> Or could someone post an example of how to set this using the >> /usr/local/etc/ezjail/JAILNAME >> file? >>=20 >> Thanks >> Russ Poyner >=20 > Hi Russ, >=20 > 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. >=20 > eg. export jail_<jailname>_parameters=3D"allow.mount=3D1 = allow.raw_sockets=3D1 > etc." >=20 > Regards, >=20 > Jase. >=20 >=20 > --=20 > Jase Thew > jase@FreeBSD.org > FreeBSD Ports Committer I still seem to be missing something. I've tried a number of variations on export jail_smb_paramters=3D"allow.mount=3D1 allow.mount.zfs=3D1" in /usr/local/etc/ezjail/smb but see no change in the output of sysctl = inside the jail after stopping and restarting it. I'm running ezjail 3.2.3 and freeBSD 9 STABLE. Perhaps I am missing Drew's patch to the jail rc script? Thanks again Russ Poyner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A73E1DF7-2794-424B-A743-281876A79531>