]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure the initrd outputs are prefixed with the image name 1548/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 May 2023 09:23:13 +0000 (11:23 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 May 2023 09:31:10 +0000 (11:31 +0200)
This makes sure that they're cleaned up in unlink_output() together with the image.

mkosi/__init__.py

index 643da964b9a49a94b058e2fa2bff96601ad79d0c..dffbc3702c265ec9893d924dd3920f7e107c8e31 100644 (file)
@@ -771,7 +771,8 @@ def install_unified_kernel(state: MkosiState, roothash: Optional[str]) -> None:
                 "--package", "systemd",
                 "--package", "udev",
                 "--package", "kmod",
-                "--output", "initrd",
+                "--output", f"{state.config.output}-initrd",
+                *(["--image-version", state.config.image_version] if state.config.image_version else []),
                 "--make-initrd", "yes",
                 "--bootable", "no",
                 "--manifest-format", "",