Re: modules.autoload

Kerin Millar <[email protected]> Tue, 15 Oct 2002 13:12:26 +0100
Newsgroups gmane.linux.gentoo.newbies
Message-ID <[email protected]>
Fabian Vilers wrote:
> hello there,
> 
> i've a jaz drive on a adaptec aha-2940 adapter. i like to have my jaz 
> disk mounted auto when i boot, but modules.autoload is executed after 
> reading fstab, so the jaz is never mounted...

<snip>

I hate it when I forget to change the reply address :-(

<original reply>
This should work: make a service script containing the necessary 
modprobe command for your device, and have the "localmount" service 
depend on your script. Run any of your existing service scripts without 
any arguments for more information e.g.:

    /etc/init.d/localmount

... will give you some detailed information about creating these 
scripts, it's not too difficult, just observe the syntax for implying a 
dependency and the fact that your script should respond to "start" and 
"stop" events. Have a look in /etc/init.d directory for examples. Note 
that Gentoo only has three runlevels which keeps things quite simple. 
After you've prepared your script and given it a name (such as 
"jazstart") then just add it to your boot runlevel:

    rc-update add jazstart boot

If you're not sure how to prepare such a script, then reply to this.

Alternatively, you could just put the necessary modprobe line in the 
existing localmount script which is simpler, albeit a little dirty.

--kerframil
</original reply>