From owner-freebsd-stable Tue May 29 9:25:31 2001 Delivered-To: freebsd-stable@freebsd.org Received: from melete.ch.intel.com (chfdns02.ch.intel.com [143.182.246.25]) by hub.freebsd.org (Postfix) with ESMTP id 49FFD37B422 for ; Tue, 29 May 2001 09:25:28 -0700 (PDT) (envelope-from jreynold@sedona.ch.intel.com) Received: from sedona.intel.com (sedona.ch.intel.com [143.182.218.21]) by melete.ch.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.39 2001/05/18 00:47:02 root Exp $) with ESMTP id QAA04095; Tue, 29 May 2001 16:25:22 GMT Received: from hip186.ch.intel.com (hip186.ch.intel.com [143.182.225.68]) by sedona.intel.com (8.9.1a/8.9.1/d: sendmail.cf,v 1.14 2001/01/02 18:39:59 steved Exp $) with ESMTP id JAA19548; Tue, 29 May 2001 09:25:22 -0700 (MST) X-Envelope-From: jreynold@sedona.ch.intel.com Received: (from jreynold@localhost) by hip186.ch.intel.com (8.9.1a/8.9.1/d: client.m4,v 1.3 1998/09/29 16:36:11 sedayao Exp sedayao $) id MAA19615; Tue, 29 May 2001 12:25:21 -0400 (EDT) X-Authentication-Warning: hip186.ch.intel.com: jreynold set sender to jreynold@sedona.ch.intel.com using -f From: John Reynolds~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15123.52593.272070.163508@hip186.ch.intel.com> Date: Tue, 29 May 2001 09:25:21 -0700 To: Jim Bayers Cc: freebsd-stable@freebsd.org Subject: Re: Switching Back to kernel.old In-Reply-To: <20010529161506.49574.qmail@web11507.mail.yahoo.com> References: <20010529161506.49574.qmail@web11507.mail.yahoo.com> X-Mailer: VM 6.92 under Emacs 20.7.2 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [ On Tuesday, May 29, Jim Bayers wrote: ] > How do I get the boot loader to load kernel.old > instead of kernel. > > I followed the instructions in UPDATE, so I did an > 'install kernel' before I did a 'install world'. > > Is there a way to get boot loader to load kernel.old > automatically. > > It loads fine from the prompt now by typing 'boot > kernel.old', but it's not automatically loaded. Question #1: Why do you need to do this? The instructions hint that a "make installkernel" followed by a reboot is the best way to determine if the newly-built kernel will boot or not. Once you establish that it does, then you can followup with a "make installworld" and do the mergemaster step to update /etc (note: the reboot *can* be skipped). If, perhaps, kernel changes have rendered the newly-built kernel as unusable on your system, then you can "back out" of the whole process by moving the /kernel.old to /kernel and moving your /modules.old directory back over to /modules. You'll probably have to mess with "chflags" to get rid of the 'schg' flag that would be on the /kernel file. Given the above, you can get the boot loader to do what you want if you have a good reason for doing it. In /boot/loader.conf put kernel="/kernel.old" and that will do what you want to do--just make sure it's what you should be doing :) -Jr -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | John Reynolds WCCG, CCE, (space for rent, cheap!) | | Intel Corporation MS: CH6-210 Phone: 480-554-9092 pgr: 602-868-6512 | | jreynold@sedona.ch.intel.com http://www-aec.ch.intel.com/~jreynold/ | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message