From mark@linus.demon.co.uk  Thu Dec  7 16:46:40 1995
Received: from linus.demon.co.uk (linus.demon.co.uk [158.152.10.220])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id QAA07557
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 7 Dec 1995 16:46:38 -0800 (PST)
Received: (from mark@localhost) by linus.demon.co.uk (8.7.3/8.7.3) id XAA01296; Thu, 7 Dec 1995 23:56:35 GMT
Message-Id: <199512072356.XAA01296@linus.demon.co.uk>
Date: Thu, 7 Dec 1995 23:56:35 GMT
From: Mark Valentine <mark@linus.demon.co.uk>
Reply-To: mark@linus.demon.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: kernel installation can break ps and friends
X-Send-Pr-Version: 3.2

>Number:         874
>Category:       misc
>Synopsis:       kernel installation can break ps and friends
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec  7 16:50:01 PST 1995
>Closed-Date:    Sat Jan 20 01:58:55 PST 1996
>Last-Modified:  Sat Jan 20 02:00:12 PST 1996
>Originator:     Mark Valentine
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
>Environment:

	N/A

>Description:

	The kernel makefile unconditionally sets kern.bootfile to point to
	the backup version of the old /kernel.  If /kernel isn't what you
	booted, this fails to fix up things like ps.

>How-To-Repeat:

	>> boot /kernel.stable
	# cd /sys/compile/MYKERNEL
	# make install
	# ps

>Fix:
	
	Perhaps the following:

	if [ `sysctl -n kern.bootfile` = /kernel ]; then
		sysctl -w kern.bootfile=/kernel.old
	fi

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Jan 20 01:58:55 PST 1996 
State-Changed-Why:  
Fixed in revs 1.74 & 1.75 of sys/i386/conf/Makefile.i386. 
>Unformatted:
