kernel: If 'kernel-with-firmware: false', don't assume /lib/firmware is present
Metadata
Current evaluation
Kernel plugin crashed with FileNotFoundError when kernel-with-firmware was false; fixed by snapcore/snapcraft PR #1750 (commit 2d16ac3c0) which made the plugin skip /lib/firmware handling when firmware is disabled.
Resolution: closed resolved
Reason: Maintainer ~kyrofa closed the report pointing to PR #1750 ('kernel plugin: don't assume /lib/firmware is present if !kernel-with-firmware'), which was merged as commit 2d16ac3c0 'kernel plugin: respect the kernel-with-firmware property'. The legacy kernel plugin was later dropped entirely with 'chore: remove snapcraft_legacy'.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Kernel plugin crashed with FileNotFoundError when kernel-with-firmware was false; fixed by snapcore/snapcraft PR #1750 (commit 2d16ac3c0) which made the plugin skip /lib/firmware handling when firmware is disabled. | |
| stealth/space-bunny-alpha | — | closed resolved | Kernel builds with kernel-with-firmware: false no longer access a missing /lib/firmware; fixed by merged PR canonical/snapcraft#1750 (commit 2d16ac3c0). | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#1750 (commit 2d16ac3c0), preventing kernel builds from accessing /lib/firmware when kernel-with-firmware is false. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved by updating the kernel plugin to skip firmware directory operations when kernel-with-firmware is disabled, preventing FileNotFoundError during builds. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by updating the kernel plugin to skip /lib/firmware when kernel-with-firmware is false, resolving the FileNotFoundError during snap builds. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#1750
(confidence 97%)
Merged PR fixing LP #1733564; commit 2d16ac3c0 guards /lib/firmware handling behind kernel-with-firmware.
-
Related To:
canonical/snapcraft#5814
(confidence 45%)
New v2 kernel plugin added much later; legacy plugin containing the fix was removed in ffb164b7a.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1748 kernel plugin: don't assume /lib/firmware is present if !kernel-with-firmware | snapcraft | closed | PR #1748 (kernel plugin /lib/firmware hotfix, LP #1733564) was closed as superseded by canonical/snapcraft#1750, merged as commit 2d16ac3c0 to skip /lib/firmware handling when kernel-with-firmware is false. | |
| #1750 kernel plugin: don't assume /lib/firmware is present if !kernel-with-firmware | snapcraft | merged | Merged PR #1750 (commit 2d16ac3c0), skipping /lib/firmware handling when kernel-with-firmware is false and fixing LP #1733564. |