Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 14:17:49 -0500 (EST)
From:      Richard Glidden <richard@glidden.org>
To:        oberman@es.net
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Dropping to single user 
Message-ID:  <200202191917.g1JJHoa35783@zaphod.wox.org>
In-Reply-To: <20020219185103.006435D09@ptavv.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 Feb, Kevin Oberman wrote:

> Using the recommended order (as per the handbook) you know that the
> new kernel is bootable and, if it is not, you simply boot kernel.old
> and are right back where you were while you figure out what went
> wrong.
> 
> Once you do an installworld, you really can't back out in any sure way
> other than a re-install. Not a lot of fun.

Good point.  It does make much more sense to test the kernel before
clobbering your world.

> I see no advantage to breaking the kernel build into two steps if you
> plan to boot the new kernel immediately.

If you run with kern.securelevel >= 1, then won't it be impossible to
install the kernel without first rebooting into single-user?  The kernel
is flaged schg, so it can't be modified unless you remove the schg flag,
which is (according to init(8)) impossible at that secure level.

It also lets you build while the machine is in multi-user, and install
while in single-user, which ensures that your installation doesn't
affect any logged-in users before you reboot, and the users don't affect
your installation.

--
Richard Glidden
richard@glidden.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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