Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-10-2012, 10:41 PM
|
#1
|
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,179
Rep:
|
Blacklisting modules doesn't work on custom Slackware ARM 14.0
Hi !
I did what i could, used /etc/modprobe.d/ files and the newer /lib/modprobe.d/, the modules i choose to blacklist are loaded.
I had no problem with the 13.37 release.
My custom version is not supposed to have been modified on these parts of the system.
Seems that the bare 14.0 doesn't have this bug.
And don't know where to begin the debug :/.
|
|
|
|
10-11-2012, 02:26 AM
|
#2
|
|
Senior Member
Registered: May 2008
Posts: 2,844
|
Yes, I've discovered this too (though not on arm).
I believe it's the change to kmod that has affected this. The modprobe command now ignores the blacklist unless you specify the -b option, and rc.* files that load a module haven't been changed to run "modprobe -b" rather than "modprobe"
I noticed it when I was trying to blacklist the alsa-oss modules which are loaded from rc.alsa.
I was going to drop Pat a note about it, but was giving the poor chap time to recover after the release.
Last edited by GazL; 10-11-2012 at 02:27 AM.
|
|
|
1 members found this post helpful.
|
10-11-2012, 10:51 AM
|
#3
|
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,179
Original Poster
Rep:
|
Ok.
Thanks.
So for those who need a workaround, edit the same files and put:
install module_name /bin/false
instead of
blacklist module_name
After that modprobe will not work, but you can use insmod.
|
|
|
|
10-11-2012, 11:26 AM
|
#4
|
|
Senior Member
Registered: May 2008
Posts: 2,844
|
Changing any occurrences of "modprobe" to"modprobe -b" in the rc files seems to be the most sensible solution to me.
|
|
|
|
10-11-2012, 01:34 PM
|
#5
|
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,179
Original Poster
Rep:
|
Ok, will take a look.
Thanks.
|
|
|
|
10-12-2012, 02:15 AM
|
#6
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,623
|
Quote:
Originally Posted by GazL
Yes, I've discovered this too (though not on arm).
I believe it's the change to kmod that has affected this. The modprobe command now ignores the blacklist unless you specify the -b option, and rc.* files that load a module haven't been changed to run "modprobe -b" rather than "modprobe"
I noticed it when I was trying to blacklist the alsa-oss modules which are loaded from rc.alsa.
I was going to drop Pat a note about it, but was giving the poor chap time to recover after the release.
|
Blacklisting modules works for me on Slackware64 14.0. For example I blacklisted joydev, because my M$ keyboard is detected as a joystick because it has some sliders.
Code:
bash-4.2$ lsmod | grep joydev
bash-4.2$ cat /lib/modprobe.d/joydev.conf
blacklist joydev
It seems to have worked, because it is not loaded.
|
|
|
|
10-12-2012, 06:16 AM
|
#7
|
|
Senior Member
Registered: May 2008
Posts: 2,844
|
Quote:
Originally Posted by H_TeXMeX_H
Blacklisting modules works for me on Slackware64 14.0. .
|
Code:
root@ws1:~# lsmod |grep oss
root@ws1:~# cat /etc/modprobe.d/sound.conf
# Ensure that on-board intel sound is always card 0:
options snd slots=snd-hda-intel
#Blacklist Alsa OSS emulation.
blacklist snd_pcm_oss
blacklist snd_mixer_oss
blacklist snd_seq_oss
root@ws1:~# modprobe snd_pcm_oss
root@ws1:~# lsmod |grep oss
snd_pcm_oss 38991 0
snd_mixer_oss 15404 1 snd_pcm_oss
snd_pcm 72128 3 snd_hda_codec,snd_hda_intel,snd_pcm_oss
snd 57476 10 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_mixer_oss,snd_pcm_oss,snd_seq_device,snd_seq
root@ws1:~# rmmod snd_pcm_oss snd_mixer_oss
root@ws1:~# lsmod |grep oss
root@ws1:~# modprobe -b snd_pcm_oss
root@ws1:~# lsmod |grep oss
root@ws1:~#
Recent versions of udev run "modprobe -b" to load modules. Slackware's rc files don't. If udev loads the module then blacklisting will work. If it is loaded by an rc file then it wont.
Last edited by GazL; 10-12-2012 at 06:18 AM.
|
|
|
1 members found this post helpful.
|
10-12-2012, 08:06 AM
|
#8
|
|
Member
Registered: Dec 2008
Posts: 747
Rep: 
|
Also not working here on Slackware 14 x86. This is my "/lib/modprobe.d/blacklist":
Code:
blacklist lp
blacklist plip
blacklist ppdev
blacklist parport_pc
blacklist parport
I made sure that "modprobe lp/plip/parport_pc/..." are commented out. And I found no other related modprobes under "/etc/rc.d".
|
|
|
|
10-12-2012, 08:40 AM
|
#9
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,623
|
Quote:
Originally Posted by GazL
Code:
root@ws1:~# lsmod |grep oss
root@ws1:~# cat /etc/modprobe.d/sound.conf
# Ensure that on-board intel sound is always card 0:
options snd slots=snd-hda-intel
#Blacklist Alsa OSS emulation.
blacklist snd_pcm_oss
blacklist snd_mixer_oss
blacklist snd_seq_oss
root@ws1:~# modprobe snd_pcm_oss
root@ws1:~# lsmod |grep oss
snd_pcm_oss 38991 0
snd_mixer_oss 15404 1 snd_pcm_oss
snd_pcm 72128 3 snd_hda_codec,snd_hda_intel,snd_pcm_oss
snd 57476 10 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_mixer_oss,snd_pcm_oss,snd_seq_device,snd_seq
root@ws1:~# rmmod snd_pcm_oss snd_mixer_oss
root@ws1:~# lsmod |grep oss
root@ws1:~# modprobe -b snd_pcm_oss
root@ws1:~# lsmod |grep oss
root@ws1:~#
Recent versions of udev run "modprobe -b" to load modules. Slackware's rc files don't. If udev loads the module then blacklisting will work. If it is loaded by an rc file then it wont.
|
Oh, I see, I understand now.
|
|
|
|
10-12-2012, 12:09 PM
|
#10
|
|
Member
Registered: Dec 2008
Posts: 747
Rep: 
|
Solved.
The config file name must end with ".conf". There had not been such requirement before.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:10 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|