Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
This allows users to specify exactly which modules to include in the initramfs for their system. They must remember to include dependancy modules themselves! (Eg sata_* depend on libata).
Created an attachment (id=126048) [details] 0002-Add-customized-modules_load-support.patch
*** Bug 154047 has been marked as a duplicate of this bug. ***
I think I'd prefer do this in a configuration file. In fact, I was thinking more of making a genkernel.conf option for allowing someone to do just this, but for both the modules_load file or the individual MODULES_* variables. Something like... MODULES_LOAD_PATH (unset uses default) OVERRIDE_MODULE_VARS=[y/N] Setting OVERRIDE_MODULES_VARS should allow a user to set one (or more) of the MODULES_* variables in genkernel.conf, itself. I'd love it if the contents of the variables were "stackable" using make.conf-like rules, but I'd be perfectly happy with simply forcing the user to put all the modules they want for each variable and pushing the stacking support off until some time later. The override should only override variables that are explicitly listed. The rest are pulled from the normal modules_load file(s). How does that sound?
I personally think this patch is fine as-is. It's a very simple approach that should work for pretty much everyone. We could even extend it a bit to allow for loading multiple files (for i in ${MODULES_CONFIG}; do source ${i}; done). It won't do stacking within the individual vars, but it will allow "inheriting" from previous files, so you can just redefine the var you want.
Have something like this being implemented? I use nouveau-drm, and wanted it for KMS-goodies loaded already during initramdisk-phase, but I only want the nouveau-module, the other ones I have compiled are not needed that early in the boot process...