recent rc changes
Brooks Davis
brooks at one-eyed-alien.net
Thu Jan 12 18:02:59 PST 2006
On Thu, Jan 12, 2006 at 05:16:38PM -0800, Doug Barton wrote:
> On Tue, 10 Jan 2006, Brooks Davis wrote:
>
> >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.
>
> Sorry for my ignorance here, but does 'sysctl -n security.jail.jailed' only
> equal 1 if we are inside the jail? If so, then we could add something to
> that part of /etc/rc like this:
>
> if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
> skip="$skip -s nojail"
> if [ "$early_late_divider" = "mountcritlocal" ]; then
> early_late_divider=NETWORKING
> fi
> fi
>
> 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
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060112/f08ccf0b/attachment.bin
More information about the freebsd-stable
mailing list