From owner-freebsd-jail@FreeBSD.ORG Sun Jan 27 20:21:24 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AEBFF517; Sun, 27 Jan 2013 20:21:24 +0000 (UTC) (envelope-from rpoyner@engr.wisc.edu) Received: from smtp-out.cae.wisc.edu (smtp-out.cae.wisc.edu [IPv6:2607:f388:1082:0:33a0:4b4f:ab8b:5979]) by mx1.freebsd.org (Postfix) with ESMTP id 63186646; Sun, 27 Jan 2013 20:21:24 +0000 (UTC) Received: from smtp.cae.wisc.edu (smtp.cae.wisc.edu [IPv6:2607:f388:1082:0:ac8d:e958:beb5:d993]) by smtp-out.cae.wisc.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0RKLMoG030055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 27 Jan 2013 14:21:22 -0600 Received: from dyn-63-84.engr.wisc.edu (dyn-63-84.engr.wisc.edu [10.128.63.84]) (authenticated bits=0) by smtp.cae.wisc.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0RKLKAY023165 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sun, 27 Jan 2013 14:21:20 -0600 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.5 at smtp.cae.wisc.edu Subject: Solved Re: ezjail and allow.mount.zfs on 9.1 Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Russell Poyner In-Reply-To: Date: Sun, 27 Jan 2013 14:21:20 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <740C6107-D04C-47D1-B771-81EFA9845E80@engr.wisc.edu> References: <5102DEBC.50604@engr.wisc.edu> <5103028A.5050503@FreeBSD.org> To: Russell Poyner X-Mailer: Apple Mail (2.1085) Cc: freebsd-jail@freebsd.org, Jase Thew X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 20:21:24 -0000 I apparently don't understand the update world process as well as I = thought. make buildworld make installworld did NOT replace my /etc/rc.d/jail script. When I copied the script from /usr/src/etc/rc.d to /etc/rc.d things = started working as expected RP On Jan 27, 2013, at 10:44 AM, Russell Poyner wrote: >=20 > On Jan 25, 2013, at 4:09 PM, Jase Thew wrote: >=20 >> 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__parameters support in >> /etc/rc.d/jail, you can add a line to your >> /usr/local/etc/ezjail/ config file to pass jail start-time >> parameters. >>=20 >> eg. export jail__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 >=20 > I still seem to be missing something. >=20 > 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. >=20 > I'm running ezjail 3.2.3 and freeBSD 9 STABLE. >=20 > Perhaps I am missing Drew's patch to the jail rc script? >=20 > Thanks again > Russ Poyner >=20 > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to = "freebsd-jail-unsubscribe@freebsd.org" >=20