From 6950107735c56b10a11fa3d5352370e5377ff0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 7 Nov 2018 11:54:55 +0100 Subject: [PATCH] Enable volatile logging for read-only images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- conf/distro/include/mortsgna-image-logfile-volatile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/distro/include/mortsgna-image-logfile-volatile.inc b/conf/distro/include/mortsgna-image-logfile-volatile.inc index 0d280ab..e3457b4 100644 --- a/conf/distro/include/mortsgna-image-logfile-volatile.inc +++ b/conf/distro/include/mortsgna-image-logfile-volatile.inc @@ -7,7 +7,7 @@ IMAGE_FEATURES[validitems] += "volatile-log" ROOTFS_POSTPROCESS_COMMAND += "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 if [ -f "${IMAGE_ROOTFS}${sysconfdir}/systemd/journald.conf" ]; then sed -i \