Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows to load stage extensions from a dir in the filesystem to expand the default stages with custom logic.
You can enable this feature by using the
--stage-extensions
flagThe structure is as follows:
We got a base dir which is
/etc/kairos-init/stage-extensions
(this is the default, but you can override it using theKAIROS_INIT_STAGE_EXTENSIONS_DIR
env var)You can drop your custom yip files and as usual, they will be loaded and executed in lexicographic order.
So for example, if we have:
The files will be loaded in the following order:
The files are loaded using the yip library, so you can use all the features of yip to expand the stages.
The current stages available are:
So for example, if we were to add an extra repo for zfs and install the package we could do the following:
/etc/kairos-init/stage-extensions/10-zfs.yaml
This would run the
before-install
andinstall
stages as normal, but then on theafter-install
stage it would add the zfs repo and install the zfs packages.