From: Daan De Meyer Date: Sun, 22 Oct 2023 13:23:25 +0000 (+0200) Subject: Make sure we finalize the default value for Presets= early X-Git-Tag: v19~55^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f015ec800d17d6bb0dcad07b47993fc7df51645;p=thirdparty%2Fmkosi.git Make sure we finalize the default value for Presets= early We need to finalize the default value for Presets= early as we use its value earlier than the other config options. --- diff --git a/mkosi/config.py b/mkosi/config.py index 58efdc5f2..a330d8bd4 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -2353,7 +2353,8 @@ def parse_config(argv: Sequence[str] = ()) -> tuple[MkosiArgs, tuple[MkosiConfig if args.directory is not None: parse_config(Path("."), namespace, defaults) - include = getattr(namespace, "presets", ()) + finalize_default(SETTINGS_LOOKUP_BY_DEST["presets"], namespace, defaults) + include = getattr(namespace, "presets") if Path("mkosi.presets").exists(): for p in Path("mkosi.presets").iterdir():