A common workflow is to build the same image multiple times with
slightly different settings, using a different output directory for
each build. By storing the default tools tree inside the configured
output directory, we end up rebuilding the tools tree for every single
one of these builds, even though in almost all cases the tools tree for
each image will be identical.
Let's address this issue by not storing the default tools tree in the
configured output directory but instead storing it in the current working
directory.
mkosi.local
mkosi.local.conf
mkosi.tools
+mkosi.tools.manifest
/mkosi.key
/mkosi.crt
__pycache__
f"--repository-key-check={config.repository_key_check}",
f"--repository-key-fetch={config.repository_key_fetch}",
f"--cache-only={config.cacheonly}",
- *([f"--output-directory={os.fspath(p)}"] if (p := config.output_dir) else []),
*([f"--workspace-directory={os.fspath(p)}"] if (p := config.workspace_dir) else []),
*([f"--package-cache-directory={os.fspath(p)}"] if (p := config.package_cache_dir) else []),
"--incremental=no",