The officially official Devuan Forum!

You are not logged in.

#1 2018-04-13 16:55:21

GNUser
Member
Registered: 2017-03-16
Posts: 561  

how to tell dpkg to stay away from kernel module blacklist? [SOLVED]

I was surprised and angry when I discovered that some application renamed my /etc/modprobe.d/blacklist.conf to /etc/modprobe.d/blacklist.conf.dpkg-bak. I'm guessing from the name that the culprit was dpkg, but I can't be sure.

This is upsetting because one of the blacklisted kernel modules is uvcvideo, which was blacklisted to disable my webcam for privacy reasons. (I have black tape over the webcam, but I also want that sucker's kernel module blacklisted just to be paranoid.) Running lsmod | grep uvcvideo confirms that the module is loaded (i.e., renaming blacklist.conf disables the blacklist).

Please, how do I make sure that dpkg (assuming it was the culprit) never ever does this again?

Last edited by GNUser (2018-04-13 18:07:42)

Offline

#2 2018-04-13 17:12:34

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: how to tell dpkg to stay away from kernel module blacklist? [SOLVED]

I'm going with this for now: # chattr +i /etc/modprobe.d/blacklist.conf

Offline

#3 2018-04-13 17:13:09

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: how to tell dpkg to stay away from kernel module blacklist? [SOLVED]

Normally, dpkg will ask you what you want to do when it detects a config file that's been altered from the default. My understanding is that the *.d directories are there for the local admin to add custom configs that won't be touched by dpkg. I guess that understanding is not correct or complete. Maybe put it in a file named myfsckingblacklist.conf and see if that works.

Offline

#4 2018-04-13 17:16:42

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: how to tell dpkg to stay away from kernel module blacklist? [SOLVED]

LOL

Good one!

Offline

Board footer