From owner-cvs-src@FreeBSD.ORG Thu May 12 20:33:22 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D9AC16A4CE; Thu, 12 May 2005 20:33:22 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2C7A43D39; Thu, 12 May 2005 20:33:21 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j4CKVr9Z008056; Thu, 12 May 2005 14:31:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 12 May 2005 14:33:03 -0600 (MDT) Message-Id: <20050512.143303.128442220.imp@bsdimp.com> To: des@des.no From: "M. Warner Losh" In-Reply-To: <86wtq47j97.fsf@xps.des.no> References: <42828A49.8000008@DeepCore.dk> <20050511231001.1ba1e2e3@dolphin.local.net> <86wtq47j97.fsf@xps.des.no> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: src-committers@FreeBSD.org cc: cvs-src@FreeBSD.org cc: conrads@cox.net cc: cvs-all@FreeBSD.org cc: sos@DeepCore.dk cc: sos@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/ata ata-queue.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 20:33:22 -0000 In message: <86wtq47j97.fsf@xps.des.no> des@des.no (Dag-Erling Sm=F8rgrav) writes: : "Conrad J. Sabatier" writes: : > Small problem: my last good kernel got overwritten. Strange, but o= ne : > "make installkernel" did *not* move /boot/kernel to /boot/kernel.ol= d (I : > had previously manually moved /boot/kernel.old to /boot/kernel afte= r : > discovering that the new kernel wasn't working properly, then the n= ext : > installkernel failed to move it back to kernel.old, for some reason= ). : = : because your kern.bootfile still pointed at kernel.old. the makefile= s : only move kernel to kernel.old if it's the currently running kernel, : iirc. you should always update kern.bootfile when you move or rename= : your currently running kernel, both for this reason and to get the : module path right. -thiskernel=3D`sysctl -n kern.bootfile` ; \ if [ ! "`dirname "$$thiskernel"`" -ef ${DESTDIR}${KODIR} ] ; then \ chflags -R noschg ${DESTDIR}${KODIR} ; \ rm -rf ${DESTDIR}${KODIR} ; \ else \ if [ -d ${DESTDIR}${KODIR}.old ] ; then \ chflags -R noschg ${DESTDIR}${KODIR}.old ; \ rm -rf ${DESTDIR}${KODIR}.old ; \ fi ; \ mv ${DESTDIR}${KODIR} ${DESTDIR}${KODIR}.old ; \ sysctl kern.bootfile=3D${DESTDIR}${KODIR}.old/"`basename "$$thiskerne= l"`" ; \ fi Seems that way. Warner