Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2006 17:16:38 -0800 (PST)
From:      Doug Barton <dougb@FreeBSD.org>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        Charles Sprickman <spork@bway.net>, stable@freebsd.org
Subject:   Re: recent rc changes
Message-ID:  <20060112171152.D51718@znfgre.qbhto.arg>
In-Reply-To: <20060110191949.GA12137@odin.ac.hmc.edu>
References:  <Pine.OSX.4.61.0601091938510.312@gee5.local> <43C3FE28.6080505@FreeBSD.org> <20060110191949.GA12137@odin.ac.hmc.edu>

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

Doug


-- 

     This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060112171152.D51718>