Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384485 - Provide option to disable /var/log/dmesg
Summary: Provide option to disable /var/log/dmesg
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
Keywords: InVCS
Depends on:
Blocks: 382299
  Show dependency tree
Reported: 2011-09-25 23:51 UTC by Patrick
Modified: 2011-10-16 20:44 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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