LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-26-2016, 04:37 PM   #1
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Rep: Reputation: Disabled
Question Lacking rc.modules-$(uname -r) after upgrade to Slackware64 14.2, is this right?


Hello,
after the upgrade to Slackware64 14.2, I do not have a /etc/rc.d/rc.modules-$(uname -r) file anymore.
Is this right?

I wondered if I was supposed to copy the file from the last kernel I used on 14.1, but I did not do it because
  1. the documentation (UPGRADING.TXT & CHANGES_AND_HINTS.TXT) did not say anything about this
  2. I thought there must have been some important changes with the kernel major version jump.

On the other hand
  1. I am a bit worried because the old rc.modules-X stressed the importance of loading the "thermal" module
  2. for one I am pretty sure I need to load the "lp" module for printing (but, maybe I am supposed to do this in another place after the upgrade?).

Love & Light


PS.: Yes, I have a parallel printer, and no, it does not work, regardless of lp being loaded. But that is an issue for another thread, and I would like to work the above out first.
 
Old 09-26-2016, 04:44 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Please see http://www.linuxquestions.org/questi...on-4175483641/

You can skip the first two pages if you wish; the meat's at the end.

EDIT: the tl;dr version is...

Create the file /etc/rc.d/rc.modules.local and put your special modprobe commands in there.

But the thread is interesting in that it explains the thought processes involved.

Last edited by Richard Cranium; 09-26-2016 at 04:52 PM.
 
2 members found this post helpful.
Old 09-26-2016, 04:56 PM   #3
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,254

Rep: Reputation: 220Reputation: 220Reputation: 220
rc.modules was written in the early Cretaceous Period. At that time Tyrannosaurus was still alive, but there was no udev daemon. Now we have have udev, so both rc.modules and T. Rex are somewhat depreciated.

.
 
Old 09-27-2016, 02:53 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Just because much of what it did is now done on-demand by (e)udev doesn't mean it no longer has a role to play. There are modules other than those which load hardware support, and which can't be loaded on-demand by udev. They need to be loaded somewhere, and rc.modules seems as good a place as any.


Don't dis the Dinos; if it wasn't for an unfortunate encounter with an asteroid they'd be walking around now... eating Ubuntu users!

Last edited by GazL; 09-27-2016 at 02:54 AM.
 
Old 09-27-2016, 04:07 AM   #5
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,254

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by GazL View Post
Just because much of what it did is now done on-demand by (e)udev doesn't mean it no longer has a role to play. There are modules other than those which load hardware support, and which can't be loaded on-demand by udev. They need to be loaded somewhere, and rc.modules seems as good a place as any.
That's true. Some modules are not loaded on demand. The lp module mentioned by TS is a good example. The same with loop (*) and some others.

(*) Yes, I know. The "loop" module is built-in into the kernel image by default in Slackware.

.
 
Old 09-27-2016, 05:19 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by zk1234 View Post
(*) Yes, I know. The "loop" module is built-in into the kernel image by default in Slackware.

.
Actually it's not, at least not for the 'generic' kernels. It used to be a built-in but Pat changed that a few years ago and added a rc.loop to run the modprobe. It's not a change I agree with but it's Pat's decision to make so what I think doesn't matter.
 
1 members found this post helpful.
Old 09-27-2016, 05:47 AM   #7
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,254

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by GazL View Post
Actually it's not, at least not for the 'generic' kernels. It used to be a built-in but Pat changed that a few years ago and added a rc.loop to run the modprobe. It's not a change I agree with but it's Pat's decision to make so what I think doesn't matter.
It looks that I am also slowly becoming a depreciated T.Rex :-)

.

Last edited by zk1234; 09-27-2016 at 05:49 AM.
 
  


Reply

Tags
rc.modules, slackware 14.2



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
custom patched kernel module in /lib/modules/$(uname -r)/updates Meson Linux - Kernel 1 05-28-2011 09:17 AM
NetMos 9865 || 6 x serial port PCI card || What is /lib/modules/$(uname -r)/build ? chadwick Linux - Hardware 29 04-20-2011 04:27 PM
kernel headers & /lib/modules/uname -r/build fof3 Linux - Newbie 4 12-16-2008 02:58 PM
uname hack/modules in kernel 2.6 mandeltuete Linux - General 8 10-14-2004 03:42 PM
modprobe cant find modules but they are in /lib/modules/'uname blanny Linux - General 15 09-10-2003 11:05 AM

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

All times are GMT -5. The time now is 02:24 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