← Back to issue list

snapcraft kernel plugin puts module and firmware under 15.04-era lib/ directory

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1658177
Type
issue
State
closed
Author
~wililupy
Labels
—
Created
Updated
Closed

Current evaluation

Kernel snap layout was fixed: modules/ and firmware/ are now placed at the snap root by snapcraft PR #1115, merged as commit 86017cdef.

Resolution: closed resolved

Reason: Snapcraft PR canonical/snapcraft#1115 corrected the kernel plugin to place modules/ and firmware/ at the top level of prime/, matching snappy’s expected layout. The PR was merged as commit 86017cdef.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I built a custom kernel with custom modules built in. I can build the kernel snap and build the custom image using ubuntu-image and install it on my device with no issues, however, when I try to list the installed modules, no modules are installed and I get an error message saying that the /lib/modules/`uname -r`/modules.dep.bin is missing, which, if I go to /lib/modules/ the directory is empty. However, if I browse to /snap/kernel/x1/lib/modules/`uname -r`/ there everything is. I included the kernel snap, my redacted model, and the kernel snap snapcraft.yaml. I build the image with the following command: sudo /snap/bin/ubuntu-image -c edge -o fb-snappy.img --extra-snaps fb-kernel_3.18.25_amd64.snap fb-onl.model I'm running ubuntu-image 0.12+real1 Let me know if you need any other information. Thanks, Luke

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Kernel snap layout was fixed: modules/ and firmware/ are now placed at the snap root by snapcraft PR #1115, merged as commit 86017cdef.
stealth/space-bunny-alpha — closed resolved Snapcraft’s kernel plugin layout was fixed by merged canonical/snapcraft#1115 (commit 86017cdef), placing modules and firmware at the kernel snap’s top level.
stealth/space-bunny-alpha — closed resolved Fixed by merged canonical/snapcraft#1115 (commit 86017cdef), moving modules and firmware to the kernel snap’s top level instead of the obsolete lib/ hierarchy.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. The reported kernel plugin pathing bug was likely abandoned due to inactivity, with no fix or workaround implemented.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The report details kernel modules and firmware incorrectly placed under a legacy lib/ directory, causing missing modules.dep.bin errors. No comments or fixes were provided, indicating the issue was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. The kernel plugin incorrectly placed modules and firmware in an outdated lib/ directory, causing missing modules.dep.bin errors. The report was likely abandoned or superseded by updated snapcraft path handling.
qwen3.6-35b-a3b-mtp-q6 — — Closed without comments or resolution. The kernel plugin path issue appears abandoned due to prolonged inactivity. No fix or merge details provided.

Update history

Date Change
created

Related work

Related issues

Issue Project State Summary Similarity
#1115 kernel plugin: fix kernel snap layout snapcraft merged Merged via commit 86017cdef: kernel plugin now places modules/ and firmware/ at the top level of prime/ for kernel snaps, plus corrected required build packages; unit and manual tests updated per review.
73%