On Wed, Mar 10, 2004 at 04:44:38PM +0200, David Sapir wrote:
> 
> 
> 
> >From: Shlomi Loubaton <[EMAIL PROTECTED]>
> >To: "David Sapir" <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: loading moduled at boot time
> >Date: Wed, 10 Mar 2004 16:35:48 +0000
> >
> >David Sapir wrote:
> >> Hi,
> >> I'm looking for a way to load modules at boot time. I have a strong 
> >feeling
> >> that I should write somethins in /ets/modules.conf . I don't know what 
> >to
> >> write there and the man page did not help me much. Googling did not help
> >> either.
> >> I know of the option to use initrd, but I'm trying to avoid that. It 
> >will
> >> be my last resourt.
> >> Thanks,
> >> David.
> >The question is : at what specific part of boot time do you want to load 
> >the module? if that doesn't matter to you, you can simply write the module's 
> >name in the file /etc/modules (in most distributions).
> >
> >Shlomi.
> >
> 
> I know the modules have to be loaded before mounting local file system. One 
> of the file systems is encrypted, and I need to load the encryption 
> modules. I noticed this mount is done in the middle of the file 
> /etc/rc.d/rc.sysinit .
> When is the file /etc/modules executed?
> If I don't have this file (/etc/modules) should I just create it?

When you loop-mount a filesystem you actually run losetup and then mount
a filesystem from the loop device that was created. IIRC the loop module
depends on the aes module, and thus merely loop-mounting loads the aes
module.

And even if not, you can add a rule in modules.conf to run 'modprobe
aes' before loading the module loop . 

-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to