hint="use ToolsTreeDistribution= to set one explicitly")
release = p.tools_tree_release or distribution.default_release()
+ mirror = p.tools_tree_mirror or (p.mirror if p.mirror and p.distribution == distribution else None)
cmdline = [
"--directory", "",
"--distribution", str(distribution),
*(["--release", release] if release else []),
- *(["--mirror", p.mirror] if p.mirror and p.distribution == distribution else []),
+ *(["--mirror", mirror] if mirror else []),
"--repository-key-check", str(p.repository_key_check),
"--cache-only", str(p.cache_only),
*(["--output-dir", str(p.output_dir)] if p.output_dir else []),
tools_tree: Optional[Path]
tools_tree_distribution: Optional[Distribution]
tools_tree_release: Optional[str]
+ tools_tree_mirror: Optional[str]
tools_tree_packages: list[str]
runtime_trees: list[tuple[Path, Optional[Path]]]
runtime_size: Optional[int]
parse=config_parse_string,
help="Set the release to use for the default tools tree",
),
+ MkosiConfigSetting(
+ dest="tools_tree_mirror",
+ metavar="MIRROR",
+ section="Host",
+ help="Set the mirror to use for the default tools tree",
+ ),
MkosiConfigSetting(
dest="tools_tree_packages",
long="--tools-tree-package",
Tools Tree: {config.tools_tree}
Tools Tree Distribution: {none_to_none(config.tools_tree_distribution)}
Tools Tree Release: {none_to_none(config.tools_tree_release)}
+ Tools Tree Mirror: {none_to_default(config.tools_tree_mirror)}
Tools Tree Packages: {line_join_list(config.tools_tree_packages)}
Runtime Trees: {line_join_source_target_list(config.runtime_trees)}
Runtime Size: {format_bytes_or_none(config.runtime_size)}
default, the hardcoded default release in mkosi for the distribution
is used.
+`ToolsTreeMirror=`, `--tools-tree-mirror=`
+
+: Set the mirror to use for the default tools tree. By default, the
+ default mirror for the tools tree distribution is used.
+
`ToolsTreePackages=`, `--tools-tree-packages=`
: Extra packages to install into the default tools tree. Takes a comma
"Timezone": null,
"ToolsTree": null,
"ToolsTreeDistribution": null,
+ "ToolsTreeMirror": null,
"ToolsTreePackages": [],
"ToolsTreeRelease": null,
"UseSubvolumes": "auto",
timezone = None,
tools_tree = None,
tools_tree_distribution = None,
+ tools_tree_mirror = None,
tools_tree_packages = [],
tools_tree_release = None,
use_subvolumes = ConfigFeature.auto,