From owner-freebsd-current@FreeBSD.ORG Thu Sep 4 03:31:40 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDD3916A4BF for ; Thu, 4 Sep 2003 03:31:40 -0700 (PDT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A961A43FF2 for ; Thu, 4 Sep 2003 03:31:39 -0700 (PDT) (envelope-from des@des.no) Received: from smtp.des.no (37.80-203-228.nextgentel.com [80.203.228.37]) by mail.broadpark.no (Postfix) with ESMTP id 6F06E7895B; Thu, 4 Sep 2003 12:31:38 +0200 (MEST) Received: by smtp.des.no (Pony Express, from userid 666) id 25CE396AC1; Thu, 4 Sep 2003 12:31:38 +0200 (CEST) Received: from dwp.des.no (dwp.des.no [10.0.0.4]) by smtp.des.no (Pony Express) with ESMTP id 96FD496AC0; Thu, 4 Sep 2003 12:31:34 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id 52B69B824; Thu, 4 Sep 2003 12:31:34 +0200 (CEST) To: John Birrell References: <20030904041632.GA14639@freebsd1.cimlogic.com.au> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Thu, 04 Sep 2003 12:31:33 +0200 In-Reply-To: <20030904041632.GA14639@freebsd1.cimlogic.com.au> (John Birrell's message of "Thu, 4 Sep 2003 14:16:32 +1000") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-3.5 required=8.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_GNUS_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: current@freebsd.org Subject: Re: config(8) KERNEL setting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2003 10:31:40 -0000 John Birrell writes: > It would make more sense to me if kern.pre.mk contained this: > > KERNEL?=3D kernel > KERNEL_KO?=3D ${KERNEL} > KODIR?=3D /boot/${KERNEL} > > Comments? I have Index: kern.pre.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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?=3D kernel KERNEL?=3D kernel -KODIR?=3D /boot/${KERNEL} +KODIR?=3D /boot/${KERN_IDENT} +BOOTKODIR?=3D /boot/${KERNEL} M=3D ${MACHINE_ARCH} =20 and in /boot/loader.conf: kernel=3D"dwp_smp" #kernel=3D"dwp_up" For old times' sake, I also have /boot/kernel as a symlink to /boot/dwp_smp.=20=20 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 --=20 Dag-Erling Sm=F8rgrav - des@des.no