Kernel modules are handled by tools provided by kmod package. ![]() booster: see Booster#Early module loading.dracut: see Dracut#Early kernel module loading.Early module loading depend on the initramfs generator used: The initramfs image may not contain the kernel modules asked for in /etc/modules-load.d/, it also may lack the files that have been set in that folder. etc/modules-load.d/nf # Load virtio_net.ko at boot Empty lines and lines whose first non-whitespace character is # or are ignored. Configuration files simply contain a list of kernel modules names to load, separated by newlines. Each configuration file is named in the style of /etc/modules-load.d/ nf. Kernel modules can be explicitly listed in files under /etc/modules-load.d/ for systemd to load them during boot. ![]() However, there are cases where you might want to load an extra module during the boot process, or blacklist another one for your computer to function properly. Today, all necessary modules loading is handled automatically by udev, so if you do not need to use any out-of-tree kernel modules, there is no need to put modules that should be loaded at boot in any configuration file. $ modprobe -show-depends module_name Automatic module loading List the dependencies of a module (or alias), including the module itself: To display the configuration of a particular module: To display the comprehensive configuration of all the modules: To list the options that are set for a loaded module: To show what kernel modules are currently loaded: Note: Module names often use underscores ( _) or dashes ( -) however, those symbols are interchangeable when using the modprobe command and in configuration files in /etc/modprobe.d/.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |