blob: e53d14cfb4051c753d2b05d1bb364cb639feabf4 [file] [log] [blame]
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
do_install_append() {
sed -i -e 's/RuntimeMaxUse=64M/#RuntimeMaxUse=/' \
-i -e 's/#Storage=auto/Storage=none/' \
${D}${sysconfdir}/systemd/journald.conf
if [ "${BUILD_LOAD_TYPE}" = "user" ]; then
# Set maximium log level to info for forwarding message to syslog
sed -i -e 's/.*MaxLevelSyslog.*/MaxLevelSyslog=info/' ${D}${sysconfdir}/systemd/journald.conf
# Set maximium log level to info for storing log
sed -i -e 's/.*MaxLevelStore.*/MaxLevelStore=info/' ${D}${sysconfdir}/systemd/journald.conf
fi
# don't read kernel log from /dev/kmsg
# sed -i -e 's/.*ReadKMsg.*/ReadKMsg=no/' ${D}${sysconfdir}/systemd/journald.conf
echo "ReadKMsg=no" >> ${D}${sysconfdir}/systemd/journald.conf
}