From owner-freebsd-questions Tue Feb 19 11:17:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from zaphod.wox.org (CPE0050bae86969.cpe.net.cable.rogers.com [24.112.22.141]) by hub.freebsd.org (Postfix) with ESMTP id 09A0437B400 for ; Tue, 19 Feb 2002 11:17:55 -0800 (PST) Received: from glidden.org (rglidden@localhost.acheron.localnet [127.0.0.1]) by zaphod.wox.org (8.11.6/8.11.6) with ESMTP id g1JJHoa35783; Tue, 19 Feb 2002 14:17:51 -0500 (EST) (envelope-from rglidden@glidden.org) Message-Id: <200202191917.g1JJHoa35783@zaphod.wox.org> Date: Tue, 19 Feb 2002 14:17:49 -0500 (EST) From: Richard Glidden Subject: Re: Dropping to single user To: oberman@es.net Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20020219185103.006435D09@ptavv.es.net> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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