LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-17-2003, 02:54 PM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
creating a valid modules.conf file


I have included module support in my kernel. So I need a modules.conf file. How do I create one? I can't use the modules.conf file of my host system, cos that's a knoppix debian running from cd.
I know you probebly can't give me a clear cut awnser as to how the file on my system should look like. But could someone point me in the direction of how I can figure out how to make one? I did "man modules.conf" but I don't really understand what to do after reading that.
But still, if someone would be so kind to help me further, here are the bits of the kernel .config file I said "=m" to :

CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m

CONFIG_BLK_DEV_LOOP=m
CONFIG_BLK_DEV_RAM=m

CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_PKTTYPE=m
CONFIG_IP_NF_MATCH_MARK=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_LOG=m

CONFIG_BLK_DEV_IDESCSI=m

CONFIG_BLK_DEV_SR=m
CONFIG_CHR_DEV_SG=m

CONFIG_DUMMY=m
CONFIG_TULIP=m

CONFIG_PRINTER=m


Hope I'm not to much trouble
 
Old 04-17-2003, 03:09 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
One misconception I'd like to clear up:
Having modules installed does _not_ mean you _must_ have a modules.conf file to go with it.

I have many modules on my system, but I do not have a modules.conf file because I don't have a need for it.

If you look at modules.conf's man page you see it's an optional file. It is used to change the default behaviour of modules, ie paramaters that should always be default, or creating aliases (kind of like symlinks).

I'd try using your modules without a modules.conf file and see if things work the way you need them to work.
 
Old 04-17-2003, 03:33 PM   #3
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Hi there again.
So how do I insert modules at boot? I know there was a /etc/modules (not .conf) file on a debian I had once. Will that work here to? Or will I have to do aditional stuff. Or am I asking what I should of know because I didn't read right?
How I used to solve this problem, is that I would make a very simple script, somthing like :

#!/bin/bash

modprobe <mymodule>

And I would let run that script run by putting it in the "/etc/rc.d/init.d" directory. That's not very neat since the script would be run as well when I would shutdown.

So In short, what is the best way of inserting modules at boot on my lfs system?
 
Old 04-17-2003, 04:03 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
you can create a script in /etc/rc.d/init.d and you need to create a symlink in /etc/rc.d/rc3.c (or whatever your default runlevel is. Could be 2, 3, 4 or 5). It won't run on shutdown unless you create symlinks in rc0.d and rc6.d as well.
 
Old 04-18-2003, 02:45 AM   #5
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Thanks a bunch. I appreciate it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is my modules.conf file? linmix Fedora 2 10-02-2005 01:00 PM
How to edit /etc/modules.conf file? Mateo1041 Linux - Newbie 4 11-19-2004 12:18 PM
Creating a make.conf file Gsee *BSD 44 11-10-2004 05:50 AM
Conf.modules Vs Modules.conf Issue, lost eth0 initialization LinuxFreebie41 Linux - General 3 11-04-2004 06:02 AM
How do I edit /etc/modules.conf file? GrapeApe Linux - Newbie 10 11-13-2003 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration