Skip to content

Commit

Permalink
Ignore symlinks in /boot when fixing up kernel images
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Jul 22, 2024
1 parent cf97ae4 commit ac03ee5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ac03ee5

Please sign in to comment.