rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | do_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 | } |