Add a sysfs feature label

The new label `io.balena.features.sysfs` will mount the host /sys into
the container at /sys.

Relates to issue: #743

Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2020-02-12 09:54:37 +07:00
parent 7dcb4fa887
commit 947deb3cc6
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

@ -370,6 +370,7 @@ export function addFeaturesFromLabels(
`http://${host}:${options.listenPort}`,
);
},
'io.balena.features.sysfs': () => service.config.volumes.push('/sys:/sys'),
};
_.each(features, (fn, label) => {