From owner-freebsd-stable Sun Nov 7 8: 4:12 1999 Delivered-To: freebsd-stable@freebsd.org Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [195.37.179.254]) by hub.freebsd.org (Postfix) with ESMTP id 2F5ED14D24 for ; Sun, 7 Nov 1999 08:04:07 -0800 (PST) (envelope-from nox@saturn.kn-bremen.de) Received: from saturn.kn-bremen.de (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id RAA08223; Sun, 7 Nov 1999 17:02:32 +0100 Received: (from nox@localhost) by saturn.kn-bremen.de (8.9.3/8.8.5) id NAA82308; Sun, 7 Nov 1999 13:17:46 +0100 (MET) From: Juergen Lock Date: Sun, 7 Nov 1999 13:17:45 +0100 To: "Rodney W. Grimes" Cc: Matt Behrens , zzhang@cs.binghamton.edu, freebsd-stable@FreeBSD.ORG Subject: Re: easyboot far into disk Message-ID: <19991107131744.A81793@saturn.kn-bremen.de> References: <19991107031828.A59629@saturn.kn-bremen.de> <199911070444.UAA63937@gndrsh.dnsmgr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.7i In-Reply-To: <199911070444.UAA63937@gndrsh.dnsmgr.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Nov 06, 1999 at 08:44:57PM -0800, Rodney W. Grimes wrote: > > On Sat, Nov 06, 1999 at 11:30:39AM -0800, Rodney W. Grimes wrote: > > > > I forgot: > > > > make install DESTDIR=/mnt > > > > > > This has bugs in it, it flobbs with /var/db/kvm_kernel.db and should > > > not do any of that stuff unless DESTDIR is null or / or / equiv. > > > > Hmm. I actually looked at the make -n output but missed that bug (oops!) > > > > What would break if we just used ${DESTDIR}/var/db/kvm_kernel.db > > there too? Somehow i would believe it isn't doing it that way for > > a reason... > > The fact that ${DESTDIR}/var/db may not even exist if I am using DESTDIR > to stuff a kernel someplace safe. I think it does a test -f, that should just fail in that case? > > Think about it... the purpose of frobbing with /var/db/kvm_kernel.db is > becuase you _MAY_ be frobbing the kernel running image and libkvm doesn't > like it when /kernel and /bar/db/kvm_kernel.db are missmatched. Yep... > (I think this > code is also seriously broken for the case that you booted some other > kernel. Oh. > It should only be frobbing things if the file it is about to > replace is the file returned by ``sysctl kern.bootfile'', in all other > cases it should do nothing more than install the file.) Sounds good. so use ${DESTDIR}/var/db/kvm_kernel.db but only if kern.bootfile is ${DESTDIR}/kernel? That seems to me like the cleanest way to do it... Regards, -- Juergen Lock (remove dot foo from address to reply) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message