6

I don't want to load the kernel module nouveau on my debian box at startup, so I put the following in /etc/modprobe.d/blacklist.conf:

blacklist ttm
blacklist drm
blacklist nouveau

I even did a update-initramfs -u but nonetheless those three modules get loaded each time I boot.

Does anyone know why and how to fix this.

JohnnyFromBF
  • 3,476
  • 10
  • 32
  • 42

1 Answers1

9

You can find the answer in the wiki: the idea is that one does not use /etc/modprobe.d/blacklist.conf. Instead, say you want to blacklist pcspkr. You create a pcspkr.conf file in /etc/modprobe.d and put blacklist pcspkr inside. Then run

depmod -ae && update-initramfs -u
sourcejedi
  • 48,311
  • 17
  • 143
  • 296
schaiba
  • 7,493
  • 1
  • 33
  • 31
  • I see the wiki page says `depmod` is required here, but it sounds nonsense to me. Source: I helped develop modprobe, a while back :-P. I am not sure why following your answer would be any better, though clearly at least one person found this approach helpful. – sourcejedi Apr 19 '19 at 21:53