diskimage-builder/diskimage_builder/elements/modprobe
Mohammed Naser 6f1b51627f modprobe.d: use $TMP_MOUNT_PATH
The hook inside extra-data.d runs outside the chroot when
building the image which means that we need to prefix paths
inside the hook to avoid running things on the host.

We also run it with sudo because if we're running DIB not
as root, /etc is uid 0 and we'll get a permission denied.

Change-Id: I1838890fe124c84c879285a471bcc78fe47d6c23
2019-12-18 11:42:02 -05:00
..
extra-data.d modprobe.d: use $TMP_MOUNT_PATH 2019-12-18 11:42:02 -05:00
install.d modprobe DIB_MODPROBE_BLACKLIST should be optional 2018-07-25 16:33:47 +01:00
README.rst Add new modprobe element 2018-06-28 13:55:53 +02:00

========
modprobe
========

Allows to configure specific modprobe options on the image.

It contains the following functionalities:

1. Ability to blacklist specific modules using modprobe.d/blacklist.conf.
   In order to use set DIB_MODPROBE_BLACKLIST to the name of your
   module. To disable multiple modules you can set DIB_MODPROBE_BLACKLIST
   to a list of string separated by spaces.

   Example:

     export DIB_MODPROBE_BLACKLIST="igb"

2. Ability to copy specific files into /etc/modprobe.d directory, so it
   allows to configure settings with freedom. To achieve that, the files
   to be copied needs to be placed inside an specific modprobe.d directory
   of the element.