Date: Thu, 12 May 2005 14:33:03 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: des@des.no Cc: sos@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/ata ata-queue.c Message-ID: <20050512.143303.128442220.imp@bsdimp.com> In-Reply-To: <86wtq47j97.fsf@xps.des.no> References: <42828A49.8000008@DeepCore.dk> <20050511231001.1ba1e2e3@dolphin.local.net> <86wtq47j97.fsf@xps.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <86wtq47j97.fsf@xps.des.no> des@des.no (Dag-Erling Sm=F8rgrav) writes: : "Conrad J. Sabatier" <conrads@cox.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050512.143303.128442220.imp>