Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542008 - genkernel doesn't understand compressed modules (.ko.gz and .ko.xz)
Summary: genkernel doesn't understand compressed modules (.ko.gz and .ko.xz)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on: 556398
Blocks:
  Show dependency tree
 
Reported: 2015-03-03 15:49 UTC by Mark Tomich
Modified: 2021-07-23 19:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kext.patch (kext.patch,1.76 KB, patch)
2015-03-03 15:52 UTC, Mark Tomich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Tomich 2015-03-03 15:49:44 UTC
starting with kernel v3.18.x, kernel modules can be compressed with .gz and .xz.  However, genkernel can't find modules having these names.

Reproducible: Always

Steps to Reproduce:
1. configure a kernel with CONFIG_MODULE_COMPRESS_XZ (or CONFIG_MODULE_COMPRESS_GZ)
2. build a kernel and initramfs with genkernel
3. ...observe that kernel modules have not been pulled into the initramfs
Actual Results:  
no kernel modules are included in the initramfs

Expected Results:  
important kernel modules (or all kernel modules...if so configured) should have been included
Comment 1 Mark Tomich 2015-03-03 15:52:21 UTC
Created attachment 397952 [details, diff]
kext.patch

patch against =sys-kernel/genkernel-3.4.49.2.  It can also be applied cleanly to =sys-kernel/genkernel-3.4.51.2, and git master.  Additionally, it can be applied to genkernel-next with some minor modifications.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-20 03:14:24 UTC
support has been added in 3.4.52.x for this
Comment 3 Aaron D Borden 2021-07-23 19:50:45 UTC
Hello, it looks like there was a regression here in sys-kernel/genkernel-4.2.3. I have XZ compression enabled for modules but they are not getting included in the initramfs. Would you like me to open a new issue?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-23 19:53:39 UTC
(In reply to Aaron D Borden from comment #3)
> Hello, it looks like there was a regression here in
> sys-kernel/genkernel-4.2.3. I have XZ compression enabled for modules but
> they are not getting included in the initramfs. Would you like me to open a
> new issue?

Yes please.