Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

system/3162: multiple dmesgs in /var/run/dmesg.boot

From: <bob(at)cemetery.homemunix.org>
Date: Thu Mar 20 2003 - 11:24:45 EST


>Number: 3162
>Category: system
>Synopsis: multiple dmesgs in /var/run/dmesg.boot
>Confidential: yes
net
>Environment:

	System      : OpenBSD 3.3 -current
	Architecture: OpenBSD.sparc64
	Machine     : sparc64

>Description:

On sparc64 when I issue a dmesg I also get the dmesg from the last boot and serveral before that. I presume the kernel message buffer isn't wiped on a soft reboot? Due to this /var/run/dmesg.boot contains information from several boots, when it should just contain the latest.

>How-To-Repeat:

Reboot your sparc a few times (Ultra 5) and check /var/run/dmesg.boot

>Fix:

This is taken directly from distrib/miniroot/install.sub

Index: rc



RCS file: /cvs/src/etc/rc,v
retrieving revision 1.222
diff -u -r1.222 rc
--- rc	2003/03/10 01:05:28	1.222
+++ rc	2003/03/20 16:14:01

@@ -183,8 +183,8 @@
 (cd /var/authpf && rm -rf -- *)    

-# save a copy of the boot messages
-dmesg >/var/run/dmesg.boot
+# extract one copy of the boot messages +dmesg | sed -ne '/^OpenBSD /h;/^OpenBSD /!H;${g;p;}' >/var/run/dmesg.boot  

Do you need help?X

 echo 'starting system logger'
 rm -f /dev/log

>Release-Note:
Received on Thu Mar 20 11:44:22 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:52 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library