LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2008, 02:47 AM   #16
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Original Poster
Rep: Reputation: 32

hi duryodhan,
tht is what we were discussing,
i dont want to try it even, presently working with a more patched fixed kernel.
my only question is whether we should remove the simlink or not?i think the rc.modules is the last choice(mentioned by tux rules), if so no worry!!
make copies of rc.modules-2.6.21.5-smp edit it accordingly
(hope i may need this in future)
regards
rkrishna
 
Old 02-06-2008, 11:48 AM   #17
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by rkrishna View Post
right then how the machine will take the relevant rc.modules-xxxxx file,

the options are either we have to make a simlink pointing towards rc.modules-xxxxx like here i have
Code:
bash-3.1$ ls -al /etc/rc.d/rc.modules
lrwxrwxrwx 1 root root 23 2007-12-06 22:33 /etc/rc.d/rc.modules -> rc.modules-2.6.21.5-smp
and still that problem arise!!!
how will the kernel take automatically the respective rc.modules??
(b'se we already have a rc.modules pointing towards one of the rc.modules-VERSION )

or

i should remove the simlink /etc/rc.d/rc.modules, ie there should not be any rc.modules file

am i correct?
If you look at rc.S you will see
Code:
if [ -x /etc/rc.d/rc.modules.local -a -r /proc/modules ]; then
  echo "Running /etc/rc.d/rc.modules.local:"
  /bin/sh /etc/rc.d/rc.modules.local
elif [ -x /etc/rc.d/rc.modules-$(uname -r) -a -r /proc/modules ]; then
  echo "Running /etc/rc.d/rc.modules-$(uname -r):"
  . /etc/rc.d/rc.modules-$(uname -r)
elif [ -x /etc/rc.d/rc.modules -a -r /proc/modules -a -L /etc/rc.d/rc.modules ];
 then
  echo "Running /etc/rc.d/rc.modules -> $(readlink /etc/rc.d/rc.modules):"
  . /etc/rc.d/rc.modules
elif [ -x /etc/rc.d/rc.modules -a -r /proc/modules ]; then
  echo "Running /etc/rc.d/rc.modules:"
  . /etc/rc.d/rc.modules
fi
As you can see it checks for rc.modules.local first and runs that if it is there. Next, looks for rc.modules-$(uname -r) so if you are running 2.6.21-5-myfancystring then it will look for rc.modules-2.6.21-5-myfancystring and will run it. If it doesn't then it will run rc.modules. The only difference with the last two conditionals is that it will output a different string if it is a symlink. When you boot you should see the output of which rc.module file it chooses.

Do note, that it is important that you have different modules folders for all your kernel images (unless they have exactly the same modules. These should be under /lib/modules. If you have an extra string appended to your kernel version then that should be reflected in the folder name.

I'm using two different kernels images of the same version and one has the extra string. The correct rc.modules file is called for each and the appropriate modules are loaded for me. I have my rc.modules pointing to rc.modules-2.6.21.5huge and on my current kernel image I loaded rc.modules-2.6.21.5. The only difference between the files is that I commented out some things in the latter which refer to modules which I have built into the kernel.
 
  


Reply



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
Slackware. The keyboard stops responding after "Running /etc/rc.d/rc.modules-2.6.21." kolRn Linux - Hardware 10 01-22-2008 12:02 AM
How to display "real time" view of process running in openSUSE 10.1 ramirez.alex SUSE / openSUSE 6 02-27-2007 03:48 AM
"Starting System Logger" during boot time, stopping boot process. quickNitin Linux - Newbie 1 06-08-2006 01:31 PM
Warning on running "make check", 2nd time satimis Linux From Scratch 8 07-11-2005 03:46 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:29 AM.

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