]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Add preset support 1506/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Apr 2023 13:04:19 +0000 (15:04 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 1 May 2023 08:09:21 +0000 (10:09 +0200)
commit8312cff418eb30ad06f8b7bfc7b2b79e3a56a80c
treeccdd1debdf23c822ead37817597ade7fd9e4ee98
parent7f820b740730fe073d274181d3dd3843c96aa706
Add preset support

Presets can be defined in mkosi.presets/. A preset is just like a
regular config file/directory, except that mkosi can build multiple
presets sequentially.

If mkosi.presets/ exists, for each preset mkosi will read the global
configuration, followed by the individual preset configuration. It
will then build each of the presets in alpha-numerical order. Later
presets can use outputs of earlier presets, specifically using the
BaseTrees= and Initrds= options.

While this has many use cases, one promising use case is to allow
building an initrd and a final image that uses that initrd within a
single invocation of mkosi.
mkosi/__init__.py
mkosi/__main__.py
mkosi/config.py
tests/test_parse_load_args.py