[Lunar] UBUNTU: [Packaging] Fix module-check error when modules are compressed

Andrea Righi andrea.righi at canonical.com
Mon Jan 16 06:39:25 UTC 2023


On Thu, Jan 12, 2023 at 10:55:35PM +0900, Masahiro Yamada wrote:
> On Thu, Jan 12, 2023 at 10:47 PM Masahiro Yamada
> <masahiro.yamada at canonical.com> wrote:
> >
> > Some parts in the packaging scripts are written based on the assumption
> > that module file names always end with the .ko suffix.
> >
> > The module suffix might be .ko.gz, .ko.xz, or .ko.zst if module
> > compression is enabled.
> >
> > If CONFIG_MODULE_COMPRESS_GZIP/XZ/ZSTD is enabled, the module-check
> > fails with a lot of "MISS" because currently only files with *.ko
> > suffix are picked up.
> >
> > Ubuntu kernels do not enable module compression by default, but users
> > may tweak CONFIG options when they build their custom kernel.
> >
> > Modules are compressed in some distributions, for example in Fedora,
> > modules are *.ko.xz.
> >
> > Signed-off-by: Masahiro Yamada <masahiro.yamada at canonical.com>
> > ---
> 
> 
> There are more places that only take care of *.ko suffix.
> 
> If this is worth the effort, I will look into the scripts
> for consistency fix.

This would be really nice, but I'd say keep it as a low priority task,
since we don't really need it right now.

Thanks!
-Andrea



More information about the kernel-team mailing list