Summary: | Kernel module groups should be configurable | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Paul Pacheco <paulpach> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | Keywords: | InVCS |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 46282 | ||
Attachments: |
Patch to allow configurable module groups
genkernel.patch genkernel.patch |
Description
Paul Pacheco
2004-03-30 12:27:26 UTC
Created attachment 28392 [details, diff]
Patch to allow configurable module groups
Another possible approach to this would be to use everything that starts with MODULES_ as a group, and no need to do the MODULE_GROUPS thing. Would this be better? The file would look like this: MODULES_SCSI="..." MODULES_FS="..." MODULES_FIREWIRE="..." MODULES_ATARAID="..." MODULES_PCMCI="..." MODULES_USB="..." it would be very easy to do using ${!MODULES_*} If you prefer this approach, let me know and I will make a patch for you. I think that would be a better approach since that way there's no need to have a variable containing the list of groups possibly causing issues and people forgetting to add things into it. If you could make a patch for that; that would be great. The current patch also looks fine and seems to work fine here without issues, but be careful with the spelling of "PCMCIA" since it was spelt as "PCMCI" in the patch. Thanks! *** Bug 46283 has been marked as a duplicate of this bug. *** Created attachment 29153 [details, diff]
genkernel.patch
This new patch implements the second approach. I also added the MODULES_FS
variable as requested.
There is an interesting side effect to this patch. If the user defines an
environment variable before calling genkernel, for example:
export MODULES_XXX="..."
genkernel
then those modules will be included in the initrd under the group XXX.
This might be worth mentioning somewhere in the documentation because it makes
it easier for the user to customize the initrd.
Is there any problem with the patch? Nope, the patch is fine and there are no issues with it, thanks for submitting it! I'm going to merge it into the next Genkernel release with a few tweaks to the default configurations which should be done soon... Hm; I think we should remove MODULES_FS since there are known problems [ according to some other comment present in this Bugzilla ] with filesystem modules not working reliably in the kernel... Created attachment 32202 [details, diff]
genkernel.patch
New patch without MODULES_FS.
The last patch is the same thing without MODULES_FS. MODULES_FS will only do something if the file system drivers are modules. Since that is not the default configuration that genkernel has, it should not matter whether MODULES_FS exists or not. Added into genkernel-3.0.2b; it should reach Portage from CVS in half-an-hour. Thanks! |