I now have a solution to the problem. I will give it just for the record, so anyone interested can have it. BTW, this is for RH9 distro. I don't know about other distros.
The main idea is to create a file named /etc/rc.modules and write inside the modprobe statements.
Here are the detailed steps (run this as root):
If the file does not exist, execute the commands: # touch /etc/rc.d/rc.modules # chmod 755 /etc/rc.d/rc.modules # ln -s /etc/rc.d/rc.modules /etc/rc.modules
Edit the file /etc/rc.d/rc.modules and add the lines needed in the format: /sbin/modprobe <module_name>
That all there is to it.
I hope I helped someone with my inquiry, but if not, at least I learned one more thing.
Thank you all for your help, David.
From: Ira Abramov <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: loading moduled at boot time Date: Wed, 10 Mar 2004 18:40:19 +0200
Quoting David Sapir, from the post of Wed, 10 Mar: > > I know the modules have to be loaded before mounting local file system.
if you tell us what your distro is, we may be able to give you a more focused help. plus I'm not quite sure why initrd is such a nono, seems to like a useful solution, I'm just not sure if it's useful for your question...
> 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 .
either edit the file or mount it manually later. as far as commonsense tells me you will need to manually enter a passphrase at every boot to mount it anyway, otherwise your secret key must be decripted on the root FS somewhere and that makes the "encrypted" filesystem entirely non-secretive.
> When is the file /etc/modules executed?
grep and read the boot scripts of your distro. If you are messing with encrypted FS you should probably get to know the rest of the system as well so you can secure it more.
> If I don't have this file (/etc/modules) should I just create it?
if you don't have it, probably no script uses it (I think it's a Debian feature). another thing you can do to have a feature in the kernel at boot-time is to just compile it staticly, what can be easier?
-- The first, the last, and only line of defense Ira Abramov http://ira.abramov.org/email/
================================================================= 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]
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
================================================================= 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]
