← Back to issue list

kernel plugin initrd packaging fails when kernel modules have common dependencies

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1627923
Type
issue
State
closed
Author
~shrirang-bagul
Labels
Created
Updated
Closed

Current evaluation

Snapcraft kernel plugin initrd packaging failed when shared module dependencies triggered a file exists error. The report was closed without comments or resolution, indicating it was abandoned.

Suggested action:

No scores available.

Issue body

When it comes to handling common dependencies for different kernel modules the snapcraft build always fails. e.g. the hid-generic.ko and usbhid.ko modules both depend on hid.ko. In this case, the snapcraft build fails with this error: [Errno 17] File exists: '/home/u/0_work/kernel-snap/parts/kernel/install/lib/modules/4.4.16-xenial_generic+/kernel/drivers/hid/hid.ko' -> '/home/u/0_work/kernel-snap/parts/kernel/build/initrd-staging/lib/modules/4.4.16-xenial_generic+/kernel/drivers/hid/hid.ko'

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Snapcraft kernel plugin initrd packaging failed when shared module dependencies triggered a file exists error. The report was closed without comments or resolution, indicating it was abandoned.
qwen/qwen3.6-35b-a3b Closed without resolution. The snapcraft kernel plugin initrd packaging fails with a FileExistsError when modules share dependencies, indicating the bug was abandoned.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1567564 kernel plugin should use initrd from /boot in the os snap, not from /usr/lib snapcraft (launchpad) closed Closed without resolution. The proposal to update the snapcraft kernel plugin to source initrd from /boot instead of /usr/lib was abandoned or superseded by later changes, leaving the legacy duplication in place.
76%
#1569337 snapcraft kernel plugin needs to check compression method of the initrd before trying to unpack it snapcraft (launchpad) closed Closed without comments or resolution. The request to dynamically detect initrd compression in the snapcraft kernel plugin was abandoned or superseded by upstream changes.
74%
#1207 kernel plugin: stop duplicating initrd and image file, use symlinks f… snapcraft closed Closed and abandoned. The change proposed using symlinks for kernel and initrd files to avoid duplication. Initial x86_64 tests passed, but it broke the Snapdragon snap. Lacking time to debug the incompatibility, the author closed the request without merging.
72%
#1740882 Missing initrd.img-core in os.snap snapcraft (launchpad) closed Closed without resolution. The snapcraft kernel plugin failure caused by a missing initrd.img-core symlink appears abandoned or superseded by newer versions.
72%
#1606903 kernel plugin: can't snap a kernel using launchpad snapcraft (launchpad) closed Closed after confirming the obsolete snapcraft login requirement should be removed. The kernel plugin was updated to skip the unnecessary authentication step, resolving the launchpad build credential error.
71%
#1676806 Make snapcraft smarter wrt .config and initrd modules snapcraft (launchpad) closed Closed as stale. The kernel plugin has changed significantly since the request, making the original proposal obsolete. Maintainers advised opening a new issue if the feature remains relevant.
71%
#1658177 snapcraft kernel plugin puts module and firmware under 15.04-era lib/ directory snapcraft (launchpad) closed Closed without resolution or comments. The reported kernel plugin pathing bug was likely abandoned due to inactivity, with no fix or workaround implemented.
70%