Date: Tue, 8 Jun 1999 12:38:56 -0600 (MDT) From: "Kenneth D. Merry" <ken@plutotech.com> To: tejblum@arc.hq.cti.ru (Dmitrij Tejblum) Cc: alpha@FreeBSD.ORG Subject: Re: kern.bootfile... Message-ID: <199906081838.MAA30040@panzer.plutotech.com> In-Reply-To: <199906081817.WAA35608@arc.hq.cti.ru> from Dmitrij Tejblum at "Jun 8, 1999 10:17:49 pm"
index | next in thread | previous in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906081838.MAA30040>
