Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2001 09:25:21 -0700
From:      John Reynolds~ <jreynold@sedona.ch.intel.com>
To:        Jim Bayers <bayers@yahoo.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Switching Back to kernel.old
Message-ID:  <15123.52593.272070.163508@hip186.ch.intel.com>
In-Reply-To: <20010529161506.49574.qmail@web11507.mail.yahoo.com>
References:  <20010529161506.49574.qmail@web11507.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[ 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




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