Which three statements are true configuration files and the behavior of module parameters
specified in those files, in the /etc/modprobe.d directory?
A.
The files may contain options to be passed to a module only when it is a dependency of a
module being inserted.
B.
The file may contain shell commands to be run instead of inserting a particular module in the
kernel.
C.
The files may contain options to be passed to a module, only when it is inserted using a
modprobe command.
D.
The files may contain alias names for modules.
E.
The file may contain instructions to ignore certain modules.
F.
The files may contain options to be passed to a module only when it is Inserted using an
insmod command.
Explanation:
modprobe.d – Configuration directory for modprobe
Because the modprobe command can add or remove more than one module,
due to modules having dependencies, we need a method of specifying
what options are to be used with those modules (A). All files underneath
the /etc/modprobe.d directory which end with the .conf extension
specify those options as required. They can also be used to create
convenient aliases (D): alternate names for a module, or they can
override the normal modprobe behavior altogether for those with
special requirements (such as inserting more than one module).
C: options modulename option…
This command allows you to add options to the module modulename
(which might be an alias) every time it is inserted into the
kernel: whether directly (using modprobemodulename or because the
module being inserted depends on this module.
Answer : B, D and E
https://wiki.archlinux.org/index.php/Kernel_modules
Not A, C or F, because,
options modulename option…
This command allows you to add options to the module
modulename (which might be an alias) every time it is
inserted into the kernel: whether directly (using modprobe
modulename or because the module being inserted depends on
this module.
from man page modprobe.d
The format of and files under modprobe.d is simple: one command per line, with
blank lines and lines starting with ‘#’ ignored (useful for adding comments). A
‘\’ at the end of a line causes it to continue on the next line, which makes the
file a bit neater.
–> shell commands B
alias wildcard modulename
This allows you to give alternate names for a module. For example: “alias
my-mod really_long_modulename” means you can use “modprobe my-mod” instead of
“modprobe really_long_modulename”. You can also use shell-style wildcards, so
“alias my-mod* really_long_modulename” means that “modprobe my-mod-something”
has the same effect. You can’t have aliases to other aliases (that way lies
madness), but aliases can have options, which will be added to any other
options.
–> D
Agreed: B, D, E
It’s in the man page for modprobe.d