blob: e53d14cfb4051c753d2b05d1bb364cb639feabf4 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3do_install_append() {
4 sed -i -e 's/RuntimeMaxUse=64M/#RuntimeMaxUse=/' \
5 -i -e 's/#Storage=auto/Storage=none/' \
6 ${D}${sysconfdir}/systemd/journald.conf
7
8 if [ "${BUILD_LOAD_TYPE}" = "user" ]; then
9 # Set maximium log level to info for forwarding message to syslog
10 sed -i -e 's/.*MaxLevelSyslog.*/MaxLevelSyslog=info/' ${D}${sysconfdir}/systemd/journald.conf
11 # Set maximium log level to info for storing log
12 sed -i -e 's/.*MaxLevelStore.*/MaxLevelStore=info/' ${D}${sysconfdir}/systemd/journald.conf
13 fi
14 # don't read kernel log from /dev/kmsg
15 # sed -i -e 's/.*ReadKMsg.*/ReadKMsg=no/' ${D}${sysconfdir}/systemd/journald.conf
16 echo "ReadKMsg=no" >> ${D}${sysconfdir}/systemd/journald.conf
17}