]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Ignore symlinks in /boot when fixing up kernel images
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 22 Jul 2024 08:49:59 +0000 (10:49 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 22 Jul 2024 09:39:19 +0000 (11:39 +0200)
mkosi/__init__.py

index 89eb1abd05c3955f5ce32833314077577f926c45..b0059111dc6781c1dc0720815918742f9c8c5824 100644 (file)
@@ -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():