-
Some modules are loaded as part of the initramfs.
mkinitcpio -Mwill print out all automatically detected modules: to prevent the initramfs from loading some of those modules, blacklist them in/etc/modprobe.d/modprobe.conf -
Running
mkinitcpio -vwill list all modules pulled in by the various hooks:
mkinitcpio -v
- Once you have your module name, create a
.conffile under/etc/modprobe.d/you can call it whatever name.For the purposes of illustration I will usemodprobe.conf
vim /etc/modprobe.d/modprobe.conf
- In this case I am blacklisting a broadcom module
brcmsmac.
# /etc/modprobe.d/modprobe.conf
# Do not load brcmsmac module
blacklist brcmsmac
- Save the file after adding the modules
- Remember to add that
.conffile to theFILESsection in/etc/mkinitcpio.conf, if you have not done so already. - Rebuild your
initramfsand reboot and you should be good to go.
mkinitcpio -g your-image-name