开机自动加载系统模块
如果想开机自动加载loop模块,传统的做法是将其写入类似/etc/modules.conf的文件里,比如ubuntu是/etc/modules;对于archlinux用户,可以在/etc/rc.conf的MODULES段添加欲自动加载的模块。
----
下面是ubuntu中的modules文件内容:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.