Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384485

Summary: Provide option to disable /var/log/dmesg
Product: Gentoo Linux Reporter: Patrick <gentoo>
Component: [OLD] Core systemAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal CC: bug
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=c5fb64d61f1462d0f8790838424722e161ba4024
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 382299    

Description Patrick 2011-09-25 23:51:59 UTC
the init script /etc/init.d/bootmisc creates /var/log/dmesg after boot, and dumps the contents of `dmesg` into this file.

This file is completely unnecessary as all the contents of this file can be fetched by the system logger from /proc/kmsg. Additionally since the system logger can pick this information up, the information logged is then duplicated. Also the information in /proc/kmsg has log priority information, which allows it to be filtered by the system logger.

Also this file doesnt grow, making its use limited since it will only contain information as of when the bootmisc script ran.

In short /var/log/dmesg is unnecessary, and just clutters up the log directory with unwanted information. It should either be removed, or at the least a configuration option added so that it may be disabled.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2011-09-27 14:51:14 UTC
I'll probably add a option later as it is IMHO useful, e.g. if you use "dmesg -c".
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2011-09-27 16:17:43 UTC
Fixed in c5fb64d61f1462d0f8790838424722e161ba4024