← Back to issue list

kernel plugin should use initrd from /boot in the os snap, not from /usr/lib

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1567564
Type
issue
State
closed
Author
~ogra
Labels
bitesize plugin
Created
Updated
Closed

Current evaluation

Kernel plugin initrd lookup was fixed by switching to /boot/initrd.img-core in snapcraft PR #1839, merged as commit aaf5e68b1.

Resolution: closed resolved

Reason: PR #1839 updated the kernel plugin's initrd path and was merged as commit aaf5e68b1. A maintainer later confirmed on 2018-02-23 that the PR had been merged.

Evaluated by: mr-cal-bot

No scores available.

Issue body

until today we used to generate the generic initrd that snapcraft uses for the kernel plugin from a deb package. as of today we now generate the generic intird as /boot/initrd.img-core as part of the os snap... for backwards compatibility the initrd is copied to /usr/lib/ubuntu-core-generic-initrd/initrd.img-core currently. long term we would like to get rid of this duplication but this means the snapcraft kernel plugin needs to consume the file from /boot now.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Kernel plugin initrd lookup was fixed by switching to /boot/initrd.img-core in snapcraft PR #1839, merged as commit aaf5e68b1.
stealth/space-bunny-alpha — closed resolved Kernel plugin was fixed to read /boot/initrd.img-core instead of the legacy /usr/lib path. PR snapcore/snapcraft#1839 merged as commit aaf5e68b1.
stealth/space-bunny-alpha — closed resolved Kernel plugin now reads initrd from /boot/initrd.img instead of /usr/lib; merged in canonical/snapcraft#1839 at aaf5e68b1.
qwen/qwen3.6-35b-a3b — — 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.
qwen/qwen3.6-35b-a3b — — Closed. The kernel plugin was updated to source the initrd from /boot within the os snap rather than /usr/lib, eliminating file duplication and aligning with the new initrd generation process.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#1839 (confidence 100%)

    Merged PR updating initrd.img-core to the /boot path.

Related issues

Issue Project State Summary Similarity
#1740882 Missing initrd.img-core in os.snap snapcraft (launchpad) closed 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.
80%
#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.
76%
#4200 kernel plugin: change location where snapd deb is unpacked snapcraft merged Merged PR #4200 updated the kernel plugin to unpack the snapd Debian package into ubuntu-core-initramfs's --root directory.
73%
#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.
71%
#1572118 kernel plugin _make_initrd fails to add given modules snapcraft (launchpad) closed Kernel initrd module collection was fixed by running modprobe separately for each configured module in snapcraft PR #476 (commit 53941d2b0), resolving LP #1572118.
71%
#1624 kernel plugin: use latest stable core snap snapcraft merged Merged PR #1624 via commit aa8a8429b, changing the kernel plugin to use the stable core snap instead of obsolete ubuntu-core and updating tests.
71%
#1816379 snapcraft kernel plugin includes always the uc16 initramfs snapcraft (launchpad) closed Closed as stale after no progress since 2019. Later, snapcraft#5814 (8f56d299d) added replacement post-core18 kernel and initrd plugins.
70%