config(8) KERNEL setting
Dag-ErlingSmørgrav
des at des.no
Thu Sep 4 03:31:40 PDT 2003
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
@@ -9,7 +9,8 @@
# 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
More information about the freebsd-current
mailing list