Product SiteDocumentation Site

23.6. Persistent Module Loading

As shown in Example 23.1, “Listing information about a kernel module with lsmod”, many kernel modules are loaded automatically at boot time. You can specify additional modules to be loaded by the systemd-modules-load.service daemon by creating a program.conf file in the /etc/modules-load.d/ directory, where program is any descriptive name of your choice. The files in /etc/modules-load.d/ are text files that list the modules to be loaded, one per line.
Example 23.6. A Text File to Load a Module
To create a file to load the virtio-net.ko module, create a file /etc/modules-load.d/virtio-net.conf with the following content:
# Load virtio-net.ko at boot

See the modules-load.d(5) and systemd-modules-load.service(8) man pages for more information.