]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Convert script settings to lists 1903/head
authorGeorges Discry <georges@discry.be>
Fri, 15 Sep 2023 20:19:41 +0000 (22:19 +0200)
committerGeorges Discry <georges@discry.be>
Wed, 27 Sep 2023 14:49:51 +0000 (16:49 +0200)
commita28c268996fa2104ecdd9afa90ae9fc0bf3468cf
tree5bc6cc3b9a5192dad2d829a39af2697d48a40077
parente4219f270d6aa2515ff624b1f210766962672723
Convert script settings to lists

With `mkosi.conf.d`, `mkosi.presets` and/or `[Match]`, it's become
really easy to split the configuration of an image in logical parts. It
might be done to isolate some settings that go together or to share the
same configuration across several images.

However, for each `mkosi.prepare`, `mkosi.build`, `mkosi.postinst` and
`mkosi.finalize` step, only one script could be executed as the one with
highest priority overrides the others.

Each script is now managed as a list of executables so that it's also
possible to split them if desired.

Backward compatibility is kind of maintained by keeping the same options
on the command line and by introducing aliases for the renamed INI
settings (with a deprecation warning). These aliases also parse the
settings as a list, so compatibility is still broken when a script was
expected to override a previously defined one, as they are now both
executed.
mkosi/__init__.py
mkosi/config.py
mkosi/resources/mkosi.md