Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55421 - Provide an after-boot dmesg log
Summary: Provide an after-boot dmesg log
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-28 07:00 UTC by Darren Spruell
Modified: 2004-10-05 16:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Initial patch to include a log of dmesg (dmesg,307 bytes, text/plain)
2004-09-04 06:34 UTC, INODE64 Sistemas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Spruell 2004-06-28 07:00:25 UTC
Apologies, this is not a bug but a suggestion to incorporate a post-boot export of the system dmesg. On other OSes I've used, the dmesg output from the system boot is written to a static file under e.g. /var/log/dmesg.boot and is useful for analyzing real dmesg/boot output prior to the kernel writing the dmesg "(buffer?)" full of garbage for device errors and filesystem debugging, etc. which tends to overwrite the useful information a user might seek after booting the system.

Reproducible: Didn't try
Steps to Reproduce:
Non-reproducable.

Actual Results:  
After having more than a few days uptime, my system dmesg is worth nothing in
terms of hardware boot message analysis and is usually filled with hardware
debugging information.
Comment 1 INODE64 Sistemas 2004-09-04 06:34:14 UTC
Created attachment 38899 [details]
Initial patch to include a log of dmesg
Comment 2 INODE64 Sistemas 2004-09-04 06:35:52 UTC
I write a script to write a log in /var/log/dmesg
I requiere after local to load all modules and see the log 
Comment 3 rob holland (RETIRED) gentoo-dev 2004-09-04 14:24:48 UTC
Hi.

Firstly, you didn't attached a patch, but the init script itself. Also, adding this into the consolefont init script is pretty random and not the right way to fix this.

bootmisc might be a better bet.

Want to have another go at this?
Comment 4 SpanKY gentoo-dev 2004-09-06 15:45:24 UTC
bootmisc sounds like a good idea ...

perhaps as the last command in the start() function in the if [ "${BOOT}" = "yes" ] block of code
Comment 5 SpanKY gentoo-dev 2004-10-05 16:19:34 UTC
updated the bootmisc script like i described to run `dmesg > /var/log/dmesg`