Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2003 14:18:33 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        "Charles Howse" <chowse@charter.net>, "'ODHIAMBO Washington'" <wash@wananchi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: scripting the buildworld/installworld process
Message-ID:  <200309011418.33352.kstewart@owt.com>
In-Reply-To: <000501c370c5$35a88290$04fea8c0@moe>
References:  <000501c370c5$35a88290$04fea8c0@moe>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 01 September 2003 01:11 pm, Charles Howse wrote:
> > BTW, If you add both of your kernels to /etc/make.conf, you
> > would only
> > need one buildkernel. The first one is the one that is installed. I
> > have it commented now but I used to use
> >
> > #KERNCONF=RUBY GENERIC
> >
> > to build both and install just RUBY. I got so that I liked the logs
>
> I thought it would be a good idea to install both GENERIC and CUSTOM
> kernels, so that I could boot to GENERIC if necessary.
>
> So, if I add KERNCONF=GENERIC CUSTOM to make.conf, then the generic
> kernel is installed as /boot/kernel, and I can cp /boot/kernel
> /boot/kernel.GENERIC.
>
> Then I can do installkernel KERNCONF=CUSTOM, and that will install
> the custom kernel as /boot/kernel, and that will be the default to
> boot...?

When I do that, I usually install GENERIC first and then install my 
custom kernel and mv kernel.old to kernel.GENERIC. I haven't thought 
about it beyond that. You probably also have to chflag it first. 

FWIW, I rarely use GENERIC except on the first install. I am more likely 
to boot to kernel.old. If the kernel dies at single user, you want the 
kernel.old to be a good one and if you have done a couple of 
kernelinstalls, that won't be true.

Kent
-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



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