Bug 874 - kernel installation can break ps and friends
Summary: kernel installation can break ps and friends
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.2-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-12-08 00:50 UTC by Mark Valentine
Modified: 1996-01-20 10:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Valentine 1995-12-08 00:50:01 UTC
	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.

Fix: 

Perhaps the following:

	if [ `sysctl -n kern.bootfile` = /kernel ]; then
		sysctl -w kern.bootfile=/kernel.old
	fi
How-To-Repeat: 
	>> boot /kernel.stable
	# cd /sys/compile/MYKERNEL
	# make install
	# ps
Comment 1 mpp freebsd_committer freebsd_triage 1996-01-20 09:58:55 UTC
State Changed
From-To: open->closed

Fixed in revs 1.74 & 1.75 of sys/i386/conf/Makefile.i386.