Mailinglist Archive: opensuse (2955 mails)

< Previous Next >
Re: [opensuse] Force module not to load
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Mon, 12 Feb 2007 00:26:54 +0100
  • Message-id: <200702120026.54986.andjoh@xxxxxxxxxx>
On Monday 12 February 2007 00:22, Carl Hartung wrote:
> On Sun February 11 2007 18:12, Anders Johansson wrote:
> > Edit /etc/modprobe.conf.local and add the line
> >
> > install usb_storage /bin/true
> >
> > It sounds backwards, but it will prevent use_storage from loading
>
> Hi Anders,
>
> Is this because doing so 'reserves' the module for user space?

Hm, not sure what you mean by that.

The "install" directive tells modprobe what to do when loading the module. If
you don't have an "install", it will simply go ahead and load it. If you have
one, it will run those commands *instead* of loading it.

You could for example use it to run other commands before the module is
loaded, for example

install foo cmd1; cmd2; modprobe --ignore-install foo

this will run the commands cmd1 and cmd2, and then load the module
(the --ignore-install is so there isn't a perpetual loop)

In the case above, with /bin/true, it will simply run /bin/true instead of
loading the module, and nothing else.

/bin/false would sound more logical to a human, but it returns "false" on
exit, so modprobe thinks there was an error, and this would interrupt a boot,
and/or give annoying error messages in the log

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups