From owner-freebsd-alpha Tue Jun 8 11:19: 0 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from arc.hq.cti.ru (arc.hq.cti.ru [195.34.40.3]) by hub.freebsd.org (Postfix) with ESMTP id 99B6414C46 for ; Tue, 8 Jun 1999 11:18:55 -0700 (PDT) (envelope-from tejblum@arc.hq.cti.ru) Received: from arc.hq.cti.ru (localhost [127.0.0.1]) by arc.hq.cti.ru (8.9.3/8.9.0) with ESMTP id WAA35608; Tue, 8 Jun 1999 22:17:49 +0400 (MSD) Message-Id: <199906081817.WAA35608@arc.hq.cti.ru> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Kenneth D. Merry" Cc: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum), alpha@FreeBSD.ORG Subject: Re: kern.bootfile... In-reply-to: Your message of "Mon, 07 Jun 1999 17:40:50 MDT." <199906072340.RAA25599@panzer.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 08 Jun 1999 22:17:49 +0400 From: Dmitrij Tejblum Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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