Re: [PATCH v3] modules: add modalias file to sysfs for modules.

From: Allen Webb
Date: Thu Dec 08 2022 - 09:24:39 EST


On Wed, Dec 7, 2022 at 8:34 PM Luis Chamberlain <mcgrof@xxxxxxxxxx> wrote:
>
> On Tue, Nov 29, 2022 at 04:43:13PM -0600, Allen Webb wrote:
> > This information is readily available for external modules in
> > modules.alias. However, builtin kernel modules are not covered.
>
> Why add this into the kernel instead of just a modules.builtin.alias
> or something like that?
>
> Luis

I am fine with that approach and already have a PoC for it. Here are
some considerations:
* This would add a new file to the kernel packaging requirements.
* It is easier for separate files to get out of sync with the runtime
state (this isn't really a big deal because we already have to deal
with it for modules.alias)