Date: Tue, 08 Jun 1999 22:17:49 +0400 From: Dmitrij Tejblum <tejblum@arc.hq.cti.ru> To: "Kenneth D. Merry" <ken@plutotech.com> Cc: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum), alpha@FreeBSD.ORG Subject: Re: kern.bootfile... Message-ID: <199906081817.WAA35608@arc.hq.cti.ru> In-Reply-To: Your message of "Mon, 07 Jun 1999 17:40:50 MDT." <199906072340.RAA25599@panzer.plutotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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). Dima Index: machdep.c =================================================================== RCS file: /home/ncvs/src/sys/alpha/alpha/machdep.c,v retrieving revision 1.44 diff -u -r1.44 machdep.c --- machdep.c 1999/06/08 16:42:14 1.44 +++ machdep.c 1999/06/08 18:12:02 @@ -792,6 +792,9 @@ p = getenv("kernelname"); if (p) strncpy(kernelname, p, sizeof(kernelname) - 1); + else + strncpy(kernelname + 1, bootinfo.booted_kernel, + sizeof(bootinfo.booted_kernel)); kernstartpfn = atop(ALPHA_K0SEG_TO_PHYS(kernstart)); kernendpfn = atop(ALPHA_K0SEG_TO_PHYS(kernend)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906081817.WAA35608>