Enable volatile logging for read-only images

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2018-11-07 11:54:55 +01:00
parent 975cbfea2e
commit 6950107735

View File

@@ -7,7 +7,7 @@ IMAGE_FEATURES[validitems] += "volatile-log"
ROOTFS_POSTPROCESS_COMMAND += "postinst_volatile_log; " ROOTFS_POSTPROCESS_COMMAND += "postinst_volatile_log; "
postinst_volatile_log () { postinst_volatile_log () {
if [ "${@bb.utils.contains('IMAGE_FEATURES', 'volatile-log', '1', '0', d)}" = "1" ]; then if [ "${@bb.utils.contains_any('IMAGE_FEATURES', 'volatile-log read-only-rootfs', '1', '0', d)}" = "1" ]; then
# systemd journal # systemd journal
if [ -f "${IMAGE_ROOTFS}${sysconfdir}/systemd/journald.conf" ]; then if [ -f "${IMAGE_ROOTFS}${sysconfdir}/systemd/journald.conf" ]; then
sed -i \ sed -i \