From 1eeff698aca56558fa09832b9bcb02c99e275dbe Mon Sep 17 00:00:00 2001 From: Thomas Manning Date: Mon, 12 Oct 2020 15:35:05 +1000 Subject: [PATCH] Add features label `io.balena.features.journal-logs` Change-type: patch Signed-off-by: Thomas Manning --- src/compose/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compose/utils.ts b/src/compose/utils.ts index 713b2e8b..5e50aaf3 100644 --- a/src/compose/utils.ts +++ b/src/compose/utils.ts @@ -328,6 +328,11 @@ export async function addFeaturesFromLabels( }; const features = { + 'io.balena.features.journal-logs': () => { + service.config.volumes.push('/var/log/journal:/var/log/journal:ro'); + service.config.volumes.push('/run/log/journal:/run/log/journal:ro'); + service.config.volumes.push('/etc/machine-id:/etc/machine-id:ro'); + }, 'io.balena.features.dbus': () => service.config.volumes.push('/run/dbus:/host/run/dbus'), 'io.balena.features.kernel-modules': () =>