These are only intended for files that affect package manager
operation so we should be able to cache this step without any issues
since if the skeleton tree is changed, users are likely going to want
to throw away their cache regardless.
with mount_base_trees(context):
install_base_trees(context)
- install_skeleton_trees(context)
cached = reuse_cache(context)
context.config.distribution.setup(context)
if not cached:
with mount_cache_overlay(context):
+ install_skeleton_trees(context)
install_distribution(context)
run_prepare_scripts(context, build=False)
install_build_packages(context)
purpose with the root directory as target (also see the **Files**
section below).
+: Note that skeleton trees are cached and any changes to skeleton trees
+ after a cached image has been built (when using `Incremental=`) are
+ only applied when the cached image is rebuilt (by using `-ff` or
+ running `mkosi -f clean`).
+
: As with the base tree logic above, instead of a directory, a tar
file may be provided too. `mkosi.skeleton.tar` will be automatically
used if found in the local directory.