Merge pull request #1445 from balena-io/codewithcheese/journalctl-label

Add features label `io.balena.features.journal-logs`
This commit is contained in:
bulldozer-balena[bot] 2020-10-12 08:14:27 +00:00 committed by GitHub
commit 7cd2950410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,6 +328,11 @@ export async function addFeaturesFromLabels(
}; };
const features = { 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': () => 'io.balena.features.dbus': () =>
service.config.volumes.push('/run/dbus:/host/run/dbus'), service.config.volumes.push('/run/dbus:/host/run/dbus'),
'io.balena.features.kernel-modules': () => 'io.balena.features.kernel-modules': () =>