From 6b27ec21a63df22f57cfcf3e0c1bd655254b09e4 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 22 Jul 2024 10:49:59 +0200 Subject: [PATCH] Ignore symlinks in /boot when fixing up kernel images --- mkosi/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 89eb1abd0..b0059111d 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1720,6 +1720,9 @@ def fixup_vmlinuz_location(context: Context) -> None: # Some architectures ship an uncompressed vmlinux (ppc64el, riscv64) for type in ("vmlinuz", "vmlinux"): for d in context.root.glob(f"boot/{type}-*"): + if d.is_symlink(): + continue + kver = d.name.removeprefix(f"{type}-") vmlinuz = context.root / "usr/lib/modules" / kver / type if not vmlinuz.parent.exists(): -- 2.47.3