Sometimes missing firmware can cause issues in the initrd so let's
at least debug log if we can't find some firmware.
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()