summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-09-05 16:59:12 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-08 00:32:43 +0100
commitd41968d8a8bd572b2892762f7092868950465014 (patch)
treeb0df7f387822d6d0e573c3cd99bddb32a2013786 /meta/recipes-core
parenta477fcd75249f5ec06e16973a31dac663fbaf356 (diff)
downloadpoky-d41968d8a8bd572b2892762f7092868950465014.tar.gz
systemd_230.bb: Set journal RuntimeMaxSize to 64M as default
At this time systemd journald uses the /run tmpfs to store logs by default systemd uses 15% of available space [1] of the /run partition, when the space runs out journald starts to vaccum/store the logs into /var/log [1]. It causes two problems one of them is timeout dev-ttySN.device's when enable debug and use journal as systemd.log_target [2] the other is related to don't find syslog entries into the journal log [3]. This problems are now more evident because i recently enabled the systemd debug option in testimage [4]. One area of improvement will be add support in systemd journald to read these parameters from the kernel cmdline like systemd.log_target, if the support exists we could add that parameter at level of testimage. [1] https://www.freedesktop.org/software/systemd/man/journald.conf.html#SystemMaxUse= [2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8142#c19 [3] https://bugzilla.yoctoproject.org/show_bug.cgi?id=10128#c4 [4] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a86a1b2703372c12e7fca18918695d093ea6ee53 [YOCTO #10128] (From OE-Core rev: 808952bf6d2b7549b456293ead4728b4dbf0d89b) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_230.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_230.bb b/meta/recipes-core/systemd/systemd_230.bb
index 4d367944c7..0a244f353c 100644
--- a/meta/recipes-core/systemd/systemd_230.bb
+++ b/meta/recipes-core/systemd/systemd_230.bb
@@ -233,6 +233,9 @@ do_install() {
233 233
234 # Enable journal to forward message to syslog daemon 234 # Enable journal to forward message to syslog daemon
235 sed -i -e 's/.*ForwardToSyslog.*/ForwardToSyslog=yes/' ${D}${sysconfdir}/systemd/journald.conf 235 sed -i -e 's/.*ForwardToSyslog.*/ForwardToSyslog=yes/' ${D}${sysconfdir}/systemd/journald.conf
236 # Set the maximium size of runtime journal to 64M as default
237 sed -i -e 's/.*RuntimeMaxUse.*/RuntimeMaxUse=64M/' ${D}${sysconfdir}/systemd/journald.conf
238
236 # this file is needed to exist if networkd is disabled but timesyncd is still in use since timesyncd checks it 239 # this file is needed to exist if networkd is disabled but timesyncd is still in use since timesyncd checks it
237 # for existence else it fails 240 # for existence else it fails
238 if [ -s ${D}${exec_prefix}/lib/tmpfiles.d/systemd.conf ]; then 241 if [ -s ${D}${exec_prefix}/lib/tmpfiles.d/systemd.conf ]; then