A system administrator needs to ensure that a custom kernel module loads automatically at boot. The module is named 'my_driver' and is built for the current kernel. Which configuration file should be modified to ensure the module loads automatically?
Trap 1: Add the insmod command in /etc/rc.local
While possible, rc.local is not the recommended method for loading modules at boot.
Trap 2: Add the module name to /etc/modules.conf
/etc/modules.conf is not a standard file in modern Linux distributions.
Trap 3: Add a configuration file in /etc/modprobe.d/
/etc/modprobe.d/ is for modprobe options, not for auto-loading modules.
- A
Add the insmod command in /etc/rc.local
Why wrong: While possible, rc.local is not the recommended method for loading modules at boot.
- B
Add the module name to /etc/modules.conf
Why wrong: /etc/modules.conf is not a standard file in modern Linux distributions.
- C
Add a configuration file in /etc/modules-load.d/
/etc/modules-load.d/ is the standard location for specifying modules to load at boot.
- D
Add a configuration file in /etc/modprobe.d/
Why wrong: /etc/modprobe.d/ is for modprobe options, not for auto-loading modules.