]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add kernel version to UKI name for versioned images
authorMarius Schiffer <marius.schiffer@emteria.com>
Mon, 19 Jun 2023 09:48:25 +0000 (09:48 +0000)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Mon, 19 Jun 2023 10:10:51 +0000 (12:10 +0200)
mkosi/__init__.py

index 7100888676bd8885a3f0d10c007fc663d5ecf6fa..c7dbfab65c89acb37d79cd026589bd018a02c7bf 100644 (file)
@@ -878,7 +878,7 @@ def install_unified_kernel(state: MkosiState, roothash: Optional[str]) -> None:
                 boot_count = f'+{state.root.joinpath("etc/kernel/tries").read_text().strip()}'
 
             if state.config.image_version:
-                boot_binary = state.root / f"efi/EFI/Linux/{image_id}_{state.config.image_version}{boot_count}.efi"
+                boot_binary = state.root / f"efi/EFI/Linux/{image_id}_{state.config.image_version}-{kver}{boot_count}.efi"
             elif roothash:
                 _, _, h = roothash.partition("=")
                 boot_binary = state.root / f"efi/EFI/Linux/{image_id}-{kver}-{h}{boot_count}.efi"