Re: Repopulating the GENERIC kernel

2007-06-25 Thread Pietro Cerutti
Tim Daneliuk wrote:
 I have a production 6.2 STABLE machine w/something like this in 
 /etc/make.conf:
 
 KERNCONF=MYKERN SMP GENERIC
 
 When I do a 'make kernel', as I understand it, all three kernels get *build* 
 but only
 MYKERN actually gets installed.
 
 So ... how do I get the latest version of GENERIC (that I just compiled per 
 the above)
 installed into /boot *without* it actually being the active kernel.  IOW, I 
 want
 my kernel build to *install* MYKERN as the active kernel and refresh GENERIC 
 just in
 case I need it to recover a failed boot...

try with

make buildkernel
make installkernel KERNCONF=GENERIC INSTKERNNAME=GENERIC
make installkernel KERNCONF=SMP INSTKERNNAME=SMP
make installkernel KERNCONF=MYKERN INSTKERNNAME=MYKERN

then set the name of the kernel that you want to boot off in
/boot/loader.conf, as

kernel=MYKERN

I don't know if there's an automatized way to perform the same...

Hope this helps,

 TIA,

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp




signature.asc
Description: OpenPGP digital signature


Re: Repopulating the GENERIC kernel

2007-06-25 Thread Tim Daneliuk
Pietro Cerutti wrote:
 Tim Daneliuk wrote:
 I have a production 6.2 STABLE machine w/something like this in 
 /etc/make.conf:

 KERNCONF=MYKERN SMP GENERIC

 When I do a 'make kernel', as I understand it, all three kernels get *build* 
 but only
 MYKERN actually gets installed.

 So ... how do I get the latest version of GENERIC (that I just compiled per 
 the above)
 installed into /boot *without* it actually being the active kernel.  IOW, 
 I want
 my kernel build to *install* MYKERN as the active kernel and refresh GENERIC 
 just in
 case I need it to recover a failed boot...
 
 try with
 
 make buildkernel
 make installkernel KERNCONF=GENERIC INSTKERNNAME=GENERIC
 make installkernel KERNCONF=SMP INSTKERNNAME=SMP
 make installkernel KERNCONF=MYKERN INSTKERNNAME=MYKERN
 
 then set the name of the kernel that you want to boot off in
 /boot/loader.conf, as
 
 kernel=MYKERN
 
 I don't know if there's an automatized way to perform the same...

Well ... I guess I could avoid the last step with:

make installkernel KERNCONF=MYKERN INSTKERNNAME=kernel

... since I believe the bootloader defaults to looking for a kernel called, um, 
kernel :)

 
 Hope this helps,
 

Yes - it helps greatly.  Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Repopulating the GENERIC kernel

2007-06-25 Thread Pietro Cerutti

Tim Daneliuk wrote:
 Pietro Cerutti wrote:
 Tim Daneliuk wrote:
 I have a production 6.2 STABLE machine w/something like this in 
 /etc/make.conf:

 KERNCONF=MYKERN SMP GENERIC

 When I do a 'make kernel', as I understand it, all three kernels get 
 *build* but only
 MYKERN actually gets installed.

 So ... how do I get the latest version of GENERIC (that I just compiled per 
 the above)
 installed into /boot *without* it actually being the active kernel.  IOW, 
 I want
 my kernel build to *install* MYKERN as the active kernel and refresh 
 GENERIC just in
 case I need it to recover a failed boot...
 try with

 make buildkernel
 make installkernel KERNCONF=GENERIC INSTKERNNAME=GENERIC
 make installkernel KERNCONF=SMP INSTKERNNAME=SMP
 make installkernel KERNCONF=MYKERN INSTKERNNAME=MYKERN

 then set the name of the kernel that you want to boot off in
 /boot/loader.conf, as

 kernel=MYKERN

 I don't know if there's an automatized way to perform the same...
 
 Well ... I guess I could avoid the last step with:
 
 make installkernel KERNCONF=MYKERN INSTKERNNAME=kernel
 
 ... since I believe the bootloader defaults to looking for a kernel called, 
 um, kernel :)

Not only, you can avoid INSTKERNNAME=kernel if what you want is a kernel
called kernel.
the kernel defaults to kernel as for in /boot/defaults/loader.conf

 
 Hope this helps,

 
 Yes - it helps greatly.  Thanks!

Regards,

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp


signature.asc
Description: PGP signature


signature.asc
Description: OpenPGP digital signature