Subject: Re: [bug#30629] [PATCH 0/5] Detect missing modules in the initrd

From: Danny Milosavljevic <[email-masked]>
Date: Wed, 28 Feb 2018 12:36:03 +0100

On Tue, 27 Feb 2018 23:50:27 +0100
Danny Milosavljevic <[email-masked]> wrote:

> > > I'm not sure about the module resolution order, first use the aliases or first
> > > use the real module files?    
> > 
> > In what part?  
> 
> modprobe.  It can either get "pci:024215325233" or "ahci".  The first is an alias
> and the latter eventually resolves to a file "ahci.ko".

kmod-24 does it in this order:

        DBG(ctx, "lookup modules.dep %s\n", alias);
... (if found, stop)
        DBG(ctx, "lookup modules.symbols %s\n", alias);
... (if found, stop)
        DBG(ctx, "lookup install and remove commands %s\n", alias);
... (if found, stop)
        DBG(ctx, "lookup modules.aliases %s\n", alias);
... (if found, stop)
        DBG(ctx, "lookup modules.builtin %s\n", alias);

modules.builtin is just available as modules.builtin.bin, hmmm...