kernel plugin _make_initrd fails to add given modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
The kernel plugin does not add given modules to the initrd. In the given snapcraft.yaml "ahci" is not added to initrd. This happens because all kernel-
modprobe -n --show-depends -d /test/parts/
instead of running modprobe extra for each module:
modprobe -n --show-depends -d /test/parts/
modprobe -n --show-depends -d /test/parts/
name: test-kernel
version: 4.4.0
summary: ubuntu xenial kernel
description: A standard kernel
type: kernel
parts:
kernel:
plugin: kernel
source: git://kernel.
source-type: git
source-branch: Ubuntu-4.4.0-14.30
kdefconfig: [defconfig]
kconfigs:
- CONFIG_
- CONFIG_DEBUG_INFO=n
- CONFIG_SQUASHFS=m
- CONFIG_
- CONFIG_
- CONFIG_R8169=m
- CONFIG_
- CONFIG_
- CONFIG_
- CONFIG_
- CONFIG_
- CONFIG_
- CONFIG_
- CONFIG_ATA=y
- CONFIG_SATA_AHCI=m
- CONFIG_
kernel-
- squashfs
- ahci
Example resolution would be
FROM:
def _make_initrd(self):
if self.options.
else:
TO:
def _make_initrd(self):
for initrd_module in self.options.
Changed in snapcraft: | |
status: | New → Confirmed |
Changed in snapcraft: | |
importance: | Undecided → High |
assignee: | nobody → Sergio Schvezov (sergiusens) |
milestone: | none → 2.8.4 |
Changed in snapcraft: | |
status: | In Progress → Fix Released |
https:/ /github. com/ubuntu- core/snapcraft/ pull/476