Summary: | Please add the ability to support a custom modules ordering without editing package provided modules_load file | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Andy Wang <dopey> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Other | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Andy Wang
2006-11-04 09:37:49 UTC
Another piece of this is that it doesn't really make sense on most fully modular systems to load usb and firewire before sata. Since scsi isn't included in MY_HWOPTS by default, it also gets tossed to the end of MY_HWOPTS. Shouldn't external devices have their modules loaded last? That way any dev nodes constructed for internal devices are guaranteed to be somewhat stable( i.e. sda for the first scsi or sata disk vs. maybe being sdb if a usb or firewire external device is powered up, or maybe being sda if the device isn't powered up). I'm more than willing to do the work to implement this and create a patch, so if the genkernel team is interested, I'd be more than happy to take input on how you want this done. Here are the ways I was thinking of doing it: For the initial comment #1, simply allow a --modulesload=<file> argument, and the ability to override it in /etc/genkernel.conf as well. For this comment, either I was pretty much thinking of allowing MY_HWOPTS in /etc/genkernel.conf to override the order. Anyways, if you guys are interested in implementing these solutions let me know how you want to approach and I can do the work. I'd prefer we set the location for config.sh and modules_load in genkernel.conf (with the defaults being their current locations). As for the order of the device types, I'm open for suggestions on how to rearrange them. I would prefer just fix genkernel so it loads them in a proper order all the time, which means we'll need to add scsi to HWOPTS and make genkernel properly respect the order, even when things like "doscsi" are used. I don't really have a problem with allowing MY_HWOPTS to be set in genkernel.conf, either. What do you think of a user provided list of modules (command line and/or text file) instead of the modules statically provided in genkernel files? There would be an additional flag to tell genkernel it's a ordered list for loading. The file would still have to be in the same format as modules_load, and that is exactly what I'm talking about. Amongst the previous patches I posted in bugzilla for genkernel, there is a patch for this, but it accomplishes it in a better way, so it's due to go into genkernel-3.5.x, not into the 3.4.x series. *** This bug has been marked as a duplicate of bug 186652 *** |