Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2005 11:52:27 -0500
From:      Steve Ames <steve@energistic.com>
To:        Marc Olzheim <marcolz@stack.nl>
Cc:        Eric Anderson <anderson@centtech.com>
Subject:   Re: kernel.old not used any longer?
Message-ID:  <20050419165227.GA86651@energistic.com>
In-Reply-To: <20050419162903.GA12342@stack.nl>
References:  <200504191530.j3JFUvWD030545@energistic.com> <42652533.8060106@centtech.com> <001501c544f5$f6fc3fd0$9b00030a@officescape.net> <20050419160623.GA2922@energistic.com> <20050419162903.GA12342@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 19, 2005 at 06:29:03PM +0200, Marc Olzheim wrote:
> cd /usr/obj/usr/src/sys/<kernname> ; make -n install gives me:
> ...
> thiskernel=`sysctl -n kern.bootfile` ;  if [ "`dirname "$thiskernel"`"
> != /boot/kernel ] ; then  chflags -R noschg /boot/kernel ;  rm -rf
> /boot/kernel ;  else  if [ -d /boot/kernel.old ] ; then  chflags -R
> noschg /boot/kernel.old ;  rm -rf /boot/kernel.old ;  fi ;  mv
> /boot/kernel /boot/kernel.old ;  sysctl
> kern.bootfile=/boot/kernel.old/"`basename "$thiskernel"`" ;  fi
> ...
> 
> 
> What so you get ?

Hrm. Almost the same as you. On mine that first comparison is actually
"!= //boot/kernel". Likely because I have "DESTDIR?=/" in /etc/make.conf.

Hrm. Suddenly all makes sense. I defined DESTDIR so that 'make world'
would continue to work normally (instead of doing buildworld/installworld)
and that probably happened around August '04.

So I guess if I get rid of DESTDIR and start doing buildworld/installworld
then I get kernel.old functionality again... however this tastes like a
bug to me. Perhaps that comparison should be:

"!= ${DESTIR}/boot/kernel" ??

-Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050419165227.GA86651>