diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2013-07-04 18:06:21 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-09 07:56:14 -0700 |
commit | faa8cc6c2a582a32c695f3f2b0d45b6892c769fd (patch) | |
tree | ac7430a713d7022ac3ecc10b3e1df9c44daff668 /meta/recipes-core/initscripts/initscripts-1.0/logrotate-dmesg.conf | |
parent | 09e59f1dad9fb52adb1717840837e42a36a6c7a1 (diff) | |
download | openembedded-core-faa8cc6c2a582a32c695f3f2b0d45b6892c769fd.tar.gz |
initscripts: add dmesg file to /var/log
We should create the /var/log/dmesg.log file as a default.
If we don't then a later kernel error can flush the dmesg
ring buffer, losing valuable debug information.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/logrotate-dmesg.conf')
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/logrotate-dmesg.conf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/logrotate-dmesg.conf b/meta/recipes-core/initscripts/initscripts-1.0/logrotate-dmesg.conf new file mode 100644 index 0000000000..6f46e4216f --- /dev/null +++ b/meta/recipes-core/initscripts/initscripts-1.0/logrotate-dmesg.conf @@ -0,0 +1,9 @@ +# see "man logrotate" for details +# rotate dmesg, and keep 5 versions. + +/var/log/dmesg { + create + rotate 5 + nodateext +} + |