Add features label io.balena.features.journal-logs

Change-type: patch
Signed-off-by: Thomas Manning <thomasm@balena.io>
This commit is contained in:
Thomas Manning 2020-10-12 15:35:05 +10:00
parent ced69c8c15
commit 1eeff698ac

View File

@ -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': () =>