I’m trying to blacklist some kernel modules on my Beaglebone Black, but nothing seems to be working the way it’s supposed to. I’ve never done this before, but most resources online suggest adding an /etc/modprobe.d/blacklist (or blacklist.conf) file with a single line for each module (e.g., blacklist iptable_nat) but I’ve tried this and it never stops Angstrom from loading the modules. I’ve checked, and as far as I can tell each module is its own .ko file so it should be possible to blacklist them.
One weird thing I’ve noticed is that rebooting corrupts the blacklist/blacklist.conf files I’m creating. I’m using vi to create the files (using the “vi blacklist.conf” command and saving with a wq vi command), and after I save the file I can re-open it and see that my blacklist line is still there. When I reboot my board, the file is still there, but the blacklist line is replaced with some garbled ASCII line as if there were a problem with encoding or something like that. I’m not sure if this helps at all but it’s only helping to confuse me more.
Any ideas?