Date: Thu, 12 Jan 2006 18:02:54 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Doug Barton <dougb@FreeBSD.org> Cc: Charles Sprickman <spork@bway.net>, stable@FreeBSD.org Subject: Re: recent rc changes Message-ID: <20060113020254.GA22079@odin.ac.hmc.edu> In-Reply-To: <20060112171152.D51718@znfgre.qbhto.arg> References: <Pine.OSX.4.61.0601091938510.312@gee5.local> <43C3FE28.6080505@FreeBSD.org> <20060110191949.GA12137@odin.ac.hmc.edu> <20060112171152.D51718@znfgre.qbhto.arg>
next in thread | previous in thread | raw e-mail | index | archive | help
--5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 12, 2006 at 05:16:38PM -0800, Doug Barton wrote: > On Tue, 10 Jan 2006, Brooks Davis wrote: >=20 > >You definitely have to change things somehow in the jail case because > >local scripts won't run until after early_late_divider shows up on the > >list and in the jail case, the default never shows up. >=20 > Sorry for my ignorance here, but does 'sysctl -n security.jail.jailed' on= ly=20 > equal 1 if we are inside the jail? If so, then we could add something to= =20 > that part of /etc/rc like this: >=20 > if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then > skip=3D"$skip -s nojail" > if [ "$early_late_divider" =3D "mountcritlocal" ]; then > early_late_divider=3DNETWORKING > fi > fi >=20 > Since the jail test happens after we load_rc_config, this should work. If it's good enought for the nojail keyword, I think it's fine for the early_late_divider fix. Skipping nojail scripts always breaks local package startup not. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDxwpOXY6L6fI4GtQRAhIqAKDRGslWSrE6M/qkFOo+ytdCKXs/WwCfRcQo Ay4NRJtwg2i5yqxBg3a3n4I= =3aIX -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060113020254.GA22079>