Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117313

Summary: Module-Blacklisting with coldplug
Product: Gentoo Linux Reporter: Sebastian Noack <sebastian.noack>
Component: [OLD] Core systemAssignee: Greg Kroah-Hartman (RETIRED) <gregkh>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Noack 2005-12-31 17:27:10 UTC
Hi,

it is very nice that hotplug has a blacklist, but what would add modules to hotplug's blacklist affect if they are loaded before by coldplug? So I have coded a workaround into my coldplug-init-script by adding following lines:

        if [ -e /etc/coldplug/blacklist ]
        then
                ebegin "Unloading blacklisted modules"
                for mod in `egrep -e "^[^\#]" /etc/coldplug/blacklist`
                do
                        modprobe -r $mod
                done
                eend 0
        fi

Now, I can create a blacklist for coldplug in /etc/coldplug/blacklist or symlink my /etc/hotplug/blacklist to this location. It would be very nice if it would be adopt into the offical gentoo-coldplug-initscript. Thanks.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-04-17 08:47:37 UTC
Coldplug is now depreciated in favor of udev.  Please use that instead.