]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Parse setting paths before parsing main config file
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 4 Oct 2023 11:30:19 +0000 (13:30 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 4 Oct 2023 12:03:47 +0000 (14:03 +0200)
commitb35f4ba978bed068f7af6866bc57c3ac51a9a13e
tree72838f1da0e818d861eaf20ae2b69fae9aa89869
parentcf0f69abf2040678f47a5a7c20563595e0d70b7f
Parse setting paths before parsing main config file

Currently, paths either configure default values or append to a
list (When path_default is False, it's always a list based setting).

When paths are configuring default values, it makes more sense for
default values set in the mkosi.conf file to override path based
default values.

When appending to a list, (e.g. ExtraTrees=), it makes more sense
for the trees configured in the mkosi.conf to come after the tree
from the path (mkosi.extra).

Both these goals are achieved by parsing the path based values before
parsing the main mkosi.conf file.
mkosi/config.py