Missing initrd.img-core in os.snap
Metadata
Current evaluation
Kernel plugin looked for initrd.img-core at the obsolete /usr/lib path after base snaps moved it to /boot. Fixed by merged PR #1839 (commit aaf5e68b1) updating the path to boot/initrd.img.
Resolution: closed resolved
Reason: Launchpad bug #1740882 was fixed by snapcraft PR #1839, merged as commit aaf5e68b1 "kernel plugin: update initrd.img-core path to boot/initrd.img", which changed _unpack_generic_initrd() to read boot/initrd.img from the os.snap instead of /usr/lib/ubuntu-core-generic-initrd/initrd.img-core. Follow-up commit a4e4d3e90 (#1867) removed the fragile python-magic dependency that produced the TypeError, and the bug was closed as resolved.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Kernel plugin looked for initrd.img-core at the obsolete /usr/lib path after base snaps moved it to /boot. Fixed by merged PR #1839 (commit aaf5e68b1) updating the path to boot/initrd.img. | |
| stealth/space-bunny-alpha | — | closed resolved | Kernel plugin looked for initrd.img-core at the obsolete /usr/lib path after base snaps moved it to /boot. Fixed by merged PR #1839 (commit aaf5e68b1), which now reads boot/initrd.img. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1839: the kernel plugin now reads boot/initrd.img from os.snap instead of the obsolete initrd.img-core path (commit aaf5e68b1). | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Snapcraft's kernel plugin failed to locate initrd.img-core due to a broken symlink, causing a build crash. No fix or follow-up was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The snapcraft kernel plugin failure caused by a missing initrd.img-core symlink appears abandoned or superseded by newer versions. | |
| qwen/qwen3.6-35b-a3b | — | — | A kernel snap build failure caused by a missing initrd.img-core symlink was closed without comments or fixes, indicating abandonment. No resolution or merge details were provided. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The initrd.img-core symlink bug in the snapcraft kernel plugin was abandoned due to inactivity, with no fix implemented. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#1839
(confidence 97%)
Merged PR referenced in the issue comments by ~ogra; commit aaf5e68b1 updates the initrd.img-core path to boot/initrd.img.
-
Related To:
canonical/snapcraft#1867
(confidence 62%)
Commit a4e4d3e90 removed the python-magic dependency in the kernel plugin that raised the TypeError in the traceback.
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 | Kernel plugin initrd lookup was fixed by switching to /boot/initrd.img-core in snapcraft PR #1839, merged as commit aaf5e68b1. | |
| #1839 kernel plugin: update initrd.img-core path to boot/initrd.img | snapcraft | merged | Merged PR #1839 as commit aaf5e68b1, updating the kernel plugin to use boot/initrd.img instead of initrd.img-core and fixing LP bug #1740882. | |
| #1627923 kernel plugin initrd packaging fails when kernel modules have common dependencies | snapcraft (launchpad) | closed | Fixed by snapcore/snapcraft PR #837, which allowed initrd packaging to handle common kernel-module dependencies without duplicate-copy failures. |