]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Remove tools argument from finaiize_default_initrd() 3233/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 26 Nov 2024 14:52:32 +0000 (15:52 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 26 Nov 2024 14:52:32 +0000 (15:52 +0100)
Not required anymore since the tools tree isn't part of the cache
manifest anymore.

mkosi/__init__.py

index 705ab6974d52f5d8ca2d8d9bb548f64a49081239..f347a11e9be7384e192d32338bca859e4cf996c5 100644 (file)
@@ -1197,7 +1197,6 @@ def finalize_default_initrd(
     config: Config,
     *,
     resources: Path,
-    tools: bool = True,
     output_dir: Optional[Path] = None,
 ) -> Config:
     if config.root_password:
@@ -1254,7 +1253,7 @@ def finalize_default_initrd(
         *(["--hostname", config.hostname] if config.hostname else []),
         *(["--root-password", rootpwopt] if rootpwopt else []),
         *([f"--environment={k}='{v}'" for k, v in config.environment.items()]),
-        *(["--tools-tree", str(config.tools_tree)] if config.tools_tree and tools else []),
+        *(["--tools-tree", str(config.tools_tree)] if config.tools_tree else []),
         "--tools-tree-certificates", str(config.tools_tree_certificates),
         *([f"--extra-search-path={p}" for p in config.extra_search_paths]),
         *(["--proxy-url", config.proxy_url] if config.proxy_url else []),
@@ -4606,7 +4605,7 @@ def run_verb(args: Args, images: Sequence[Config], *, resources: Path) -> None:
             run_clean(args, config)
 
         if last.output_format != OutputFormat.none:
-            run_clean(args, finalize_default_initrd(last, tools=False, resources=resources))
+            run_clean(args, finalize_default_initrd(last, resources=resources))
 
         rmtree(Path(".mkosi-private"))
 
@@ -4687,7 +4686,7 @@ def run_verb(args: Args, images: Sequence[Config], *, resources: Path) -> None:
             run_clean(args, config)
 
         if last.output_format != OutputFormat.none:
-            run_clean(args, finalize_default_initrd(last, tools=False, resources=resources))
+            run_clean(args, finalize_default_initrd(last, resources=resources))
 
     if tools and not (tools.output_dir_or_cwd() / tools.output).exists():
         with prepend_to_environ_path(tools):