`clean`
: Remove build artifacts generated on a previous build. If combined
- with `-f`, also removes incremental build cache images. If `-f` is
- specified twice, also removes any package cache.
+ with `-f`, also removes incremental build cache images and the tools tree.
+ If `-f` is specified twice, also removes any package cache.
`serve`
: This builds the image if it is not built yet, and then serves the
removed too, before the re-build is initiated. For the `clean`
operation this option has a slightly different effect: by default
the verb will only remove build artifacts from a previous run, when
- specified once the incremental cache files are deleted too, and when
+ specified once the incremental cache files and the tools tree are deleted
+ too, and when
specified twice the package cache is also removed.
`--directory=`, `-C`
but the `mkosi.tools/` directory is found in the local directory it is
automatically used for this purpose with the root directory as target.
+: The tools tree directory is kept between repeated image builds unless
+ cleaned by calling `mkosi clean -f`.
+
Note that binaries found in any of the paths configured with
`ExtraSearchPaths=` will be executed with `/usr/` from the tools
tree instead of from the host. If the host distribution or release
`ToolsTreePackageDirectories=`, `--tools-tree-package-directory=`
: Same as `PackageDirectories=`, but for the default tools tree.
-`SyncScripts=`, `--sync-script=`
+`ToolsTreeSyncScripts=`, `--tools-tree-sync-script=`
: Same as `SyncScripts=`, but for the default tools tree.
`ToolsTreePrepareScripts=`, `--tools-tree-prepare-script=`