Subject: misc/6398: Saving a copy of kernel boot messages
To: None <gnats-bugs@gnats.netbsd.org>
From: None <msanders@confusion.net>
List: netbsd-bugs
Date: 11/04/1998 18:43:24
>Number: 6398
>Category: misc
>Synopsis: Kernel boot messages are lost on long-lived systems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Nov 4 17:50:00 1998
>Last-Modified:
>Originator: Michael K. Sanders
>Organization:
Confusion Network Systems
>Release: N/A
>Environment:
N/A
>Description:
Kernel boot messages on long-lived systems can be lost when
the message buffer wraps. This information is useful to have
regardless of how long the system has been up, so it would be
nice to save the output of dmesg(8) at boot time.
>How-To-Repeat:
Wait until your system has been up a long time and the message
buffer has been filled with stuff, then try to find the kernel
boot messages.
>Fix:
Apply the following patch to /etc/rc. This will save the
output of dmesg(8) in /var/run/dmesg.boot, just after the
/var/run directory has been cleared.
146a147,149
> # save a copy of the boot messages
> /sbin/dmesg > /var/run/dmesg.boot
>
>Audit-Trail:
>Unformatted: