Re: config(8) KERNEL setting

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Thu, 04 Sep 2003 12:31:33 +0200
John Birrell <jb_at_cimlogic.com.au> writes:
> It would make more sense to me if kern.pre.mk contained this:
>
> KERNEL?=	kernel
> KERNEL_KO?=	${KERNEL}
> KODIR?=		/boot/${KERNEL}
>
> Comments?

I have

Index: kern.pre.mk
===================================================================
RCS file: /home/ncvs/src/sys/conf/kern.pre.mk,v
retrieving revision 1.34
diff -u -r1.34 kern.pre.mk
--- kern.pre.mk 22 Aug 2003 15:41:44 -0000      1.34
+++ kern.pre.mk 29 Aug 2003 21:06:02 -0000
_at__at_ -9,7 +9,8 _at__at_
 # Can be overridden by makeoptions or /etc/make.conf
 KERNEL_KO?=    kernel
 KERNEL?=       kernel
-KODIR?=                /boot/${KERNEL}
+KODIR?=                /boot/${KERN_IDENT}
+BOOTKODIR?=    /boot/${KERNEL}

 M=     ${MACHINE_ARCH}
 

and in /boot/loader.conf:

kernel="dwp_smp"
#kernel="dwp_up"

For old times' sake, I also have /boot/kernel as a symlink to
/boot/dwp_smp.  

I used to have a more extensive patch which created that symlink at
kernel install time so you wouldn't need to modify loader.conf, and
the system would boot whichever kernel you installed last.  I removed
that part because I couldn't be bothered to make it work correctly
with all combinations of make install / make reinstall and
pre-existing /boot/kernel directory or symlink.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Thu Sep 04 2003 - 01:31:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC