OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: "How do I update /etc?" introducing upgrade36.html

From: Nick Holland (nickholland-consulting.net)
Date: Wed Nov 10 2004 - 09:23:26 CST


Fernando Braga wrote:
> Nick Holland wrote:
>
>>With the release of 3.6, I have attempted to improve this a bit:
>> http://www.openbsd.org/faq/upgrade36.html
>>
>>
> Hi Nick,
>
> I've seen you mentioned copying bsd.mp to /. Is there a way of making
> bsd.mp the default kernel aside of renaming it to /bsd ?

Plenty of answers already, here's mine:
Don't.

I rename bsd to bsd.sp
and copy bsd.mp to bsd.
I end up with four kernels in root: bsd, bsd.mp, bsd.sp, bsd.rd.
The system boots by default off bsd, which is usually bsd.mp if it is an
MP machine, but if I want to run single processor, just copy bsd.sp
over. I guess I could use links, but can't think of anything that does
for *me* off hand.

PERSONALLY, I don't like the idea of altering boot.conf unless needed,
as I can EASILY see myself compiling a test kernel (which gets the name
"bsd", copying it into place with "make install", and spending way too
much time trying to figure out why the change didn't seem to have any
effect. Actually, almost made that mistake yesterday, there isn't much
imagination involved. :)

There's quad PPro down in my basement with 2G of RAM (think about
it...at the time this machine was made, many machines maxed out at
64M!), which likes to carefully and thoroughly test its RAM on power-up,
and can't be canceled through. It then initializes two ahc(4) SCSI
channels and then a RAID controller Booting off the wrong kernel is a
very frustrating and annoying event... :) Heck, the dual PPro with 512M
is bad enough (that was yesterday's project).

Nick.
--
http://www.holland-consulting.net