* How NOT to have already compiled modules (auto)load?
@ 2004-07-01 2:39 Kalin KOZHUHAROV
2004-07-01 4:57 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Kalin KOZHUHAROV @ 2004-07-01 2:39 UTC (permalink / raw)
To: LKML
Sorry for the fuzzy subject, I couldn't formulate it better.
I was trying to find info on that on Google, man and Documentation/*, but to no avail...
I have a laptop with USB CD-ROM that is very rarely attached/used.
I have sr_mod, etc. compiled as modules.
On every boot it gets autoloaded, despite the fact that CD-ROM is not connected (no, I don't have another).
My question is is there any good(tm) way to prevent this?
One way I could think is to rename the module, but that is a bit bad.
Is there a way to blacklist some modules?
Or even better, to be able to manually modprobe (insmod) the so called blacklisted ones, but any other means to load them (such as dependency of another module, loaded by modprobe) should fail?
Another example is the ipv6, which is difficult to unload at best, as sometimes I want to test something without ipv6.
Any help and/or pointers are welcome!
I am subscribed here, please do NOT CC me for the sake of less traffic.
Kalin.
--
||///_ o *****************************
||//'_/> WWW: http://ThinRope.net/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How NOT to have already compiled modules (auto)load?
2004-07-01 2:39 How NOT to have already compiled modules (auto)load? Kalin KOZHUHAROV
@ 2004-07-01 4:57 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-07-01 4:57 UTC (permalink / raw)
To: LKML
On Thu, Jul 01, 2004 at 11:39:16AM +0900, Kalin KOZHUHAROV wrote:
> Sorry for the fuzzy subject, I couldn't formulate it better.
>
> I was trying to find info on that on Google, man and Documentation/*, but
> to no avail...
>
> I have a laptop with USB CD-ROM that is very rarely attached/used.
> I have sr_mod, etc. compiled as modules.
> On every boot it gets autoloaded, despite the fact that CD-ROM is not
> connected (no, I don't have another).
>
> My question is is there any good(tm) way to prevent this?
> One way I could think is to rename the module, but that is a bit bad.
> Is there a way to blacklist some modules?
/etc/hotplug/blacklist will prevent the hotplug scripts from loading the
module automatically.
Hope this helps,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-01 4:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 2:39 How NOT to have already compiled modules (auto)load? Kalin KOZHUHAROV
2004-07-01 4:57 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox