From owner-freebsd-alpha Tue Jun 8 11:39:14 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (Postfix) with ESMTP id 10DA014D49 for ; Tue, 8 Jun 1999 11:39:06 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.3/8.8.5) id MAA30040; Tue, 8 Jun 1999 12:38:56 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199906081838.MAA30040@panzer.plutotech.com> Subject: Re: kern.bootfile... In-Reply-To: <199906081817.WAA35608@arc.hq.cti.ru> from Dmitrij Tejblum at "Jun 8, 1999 10:17:49 pm" To: tejblum@arc.hq.cti.ru (Dmitrij Tejblum) Date: Tue, 8 Jun 1999 12:38:56 -0600 (MDT) Cc: alpha@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dmitrij Tejblum wrote... > > Dmitrij Tejblum wrote... > > > "Kenneth D. Merry" wrote: > > > > > > > > When booting from an alternate kernel this afternoon, I noticed that the > > > > kern.bootfile sysctl variable isn't getting set properly. > > > > > > > > I had to manually do the following: > > > > > > > > sysctl -w kern.bootfile=/kernel.test > > > > > > > > Before netstat would work. > > > > > > > > This is with -current from Saturday on a 433au. I booted the other kernel > > > > by typing this at the loader prompt: > > > > > > > > boot kernel.test > > > > > > Ugh, I thought I fixed it in May 11 (in rev.1.41 of machdep.c). One of > > > us apparently do something wrong. What was the value of kern.bootfile > > > before you set it manually? > > > > It was "/kernel". I can reproduce it if you'd like me to.. > > Hmm, I checked it again, and it still works. I don't understand why it doesn't > work for you. Anyway, you may try following patch and see if it works (not > tested, it won't go to that branch here anyway). Well, here's what happens with that patch: {subway:/usr/home/ken:2:0} sysctl -a |grep kernel kern.bootfile: //kernel.test netstat, etc., works okay, probably because the leading slash is discarded. And here's what happens without the patch, when kernel.test2 is booted: {subway:/usr/home/ken:1:0} sysctl -a |grep kernel kern.bootfile: /kernel Could it have something to do with the boot loader? /boot/loader is from my buildworld on Saturday, but one thing I've noticed is that the text that comes up before the boot loader prompt ("FreeBSD/alpha SRM disk boot, Revision 0.1") is dated September, 1998. So it sort of seems like /boot/loader may not be what is used here.. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message