Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2013 14:21:20 -0600
From:      Russell Poyner <rpoyner@engr.wisc.edu>
To:        Russell Poyner <rpoyner@engr.wisc.edu>
Cc:        freebsd-jail@freebsd.org, Jase Thew <jase@FreeBSD.org>
Subject:   Solved Re: ezjail and allow.mount.zfs on 9.1
Message-ID:  <740C6107-D04C-47D1-B771-81EFA9845E80@engr.wisc.edu>
In-Reply-To: <A73E1DF7-2794-424B-A743-281876A79531@engr.wisc.edu>
References:  <5102DEBC.50604@engr.wisc.edu> <5103028A.5050503@FreeBSD.org> <A73E1DF7-2794-424B-A743-281876A79531@engr.wisc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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_<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
>=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?740C6107-D04C-47D1-B771-81EFA9845E80>