Date: Sun, 7 Nov 1999 13:17:45 +0100 From: Juergen Lock <nox@jelal.kn-bremen.de> To: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> Cc: Matt Behrens <matt@zigg.com>, zzhang@cs.binghamton.edu, freebsd-stable@FreeBSD.ORG Subject: Re: easyboot far into disk Message-ID: <19991107131744.A81793@saturn.kn-bremen.de> In-Reply-To: <199911070444.UAA63937@gndrsh.dnsmgr.net> References: <19991107031828.A59629@saturn.kn-bremen.de> <199911070444.UAA63937@gndrsh.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <nox.foo@jelal.kn-bremen.de> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991107131744.A81793>