Skip to content

Commit

Permalink
Debug log when firmware is missing
Browse files Browse the repository at this point in the history
Sometimes missing firmware can cause issues in the initrd so let's
at least debug log if we can't find some firmware.
  • Loading branch information
DaanDeMeyer authored and keszybz committed Nov 10, 2023
1 parent 7df541b commit a5c5c3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mkosi/kmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ def resolve_module_dependencies(root: Path, kver: str, modules: Sequence[str]) -
depends += [d for d in value.strip().split(",") if d]

elif key == "firmware":
firmware += [f for f in (root / "usr/lib/firmware").glob(f"{value.strip()}*")]
fw = [f for f in (root / "usr/lib/firmware").glob(f"{value.strip()}*")]
if not fw:
logging.debug(f"Not including missing firmware /usr/lib/firmware/{value} in the initrd")

firmware += fw

elif key == "name":
name = value.strip()
Expand Down

0 comments on commit a5c5c3e

Please sign in to comment.