Comment 1 for bug 1490115

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1490115] [NEW] build a fully generic initrd.img without modules

On Sat, Aug 29, 2015 at 08:30:13AM -0000, Oliver Grawert wrote:

> to not duplicate the modules we should instead ship a "modules.img" file
> in /boot/$bootloader/a|b/ that the initrd can loop mount on startup.

The modules that are shipped in the initramfs are, by definition, those
modules that may be required in order for the kernel to access the root
filesystem. If the modules are not required in order to access the root
filesystem, they should not be included in the initramfs in the first place.
If they *are* required in order to access the root filesystem (in one or
more configurations), then providing these modules in a separate file on the
/boot partition which will be accessed *from the initramfs* is not viable
because the /boot partition is on the same device as the root filesystem and
will require the same drivers in order to access it.

The kernel does support concatenating multiple initramfs into a single
image. This may be a workable option for what you're trying to accomplish.
In any case, the filesystem containing the modules for the initramfs needs
to be loaded by the bootloader, not by the kernel.