From 95a0800c26b015be340f21797c095df7411cf605 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 9 May 2023 11:23:13 +0200 Subject: [PATCH] Make sure the initrd outputs are prefixed with the image name This makes sure that they're cleaned up in unlink_output() together with the image. --- mkosi/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 643da964b..dffbc3702 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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", "", -- 2.47.2