Runtime features

Add features that can be enabled and disabled on runtime

cOS allows to (optionally) add features that can be disabled/enabled in runtime, provided by system/cos-features .

Cloud-init files stored in /system/features are read by cos-feature and allow to interactively enable or disable them in a running system, for example:

$> cos-feature list

====================
cOS features list

To enable, run: cos-feature enable <feature>
To disable, run: cos-feature disable <feature>
====================

- vagrant (enabled)
- ...
...

By default cOS ships the vagrant featureset - when enabled will automatically create the default vagrant user which is generally used to create new Vagrant boxes.

If you don’t need cos-features you can avoid installing system/cos-features , it’s optional.

Adding or removing features

To either add or remove the available features, delete the relevant files in the /system/features folder of the derivative prior to build the container image.


Last modified May 6, 2022 : Skip generating docs (d29a239)