update-modules is a simple tool to manage /etc/modules.conf and /etc/chandev.conf for the s390 architecture. The Linux module utilities use one configuration file for all their configuration. This makes it hard for packages to dynamically add information about their own modules. To fix this update-modules has been introduced.
update-modules attempts to fix this by generating the configuration file from seperate files which are located in /etc/modutils. All files in that directory are assembled together to form /etc/modules.conf and /etc/chandev.conf. There is also a special subdirectory (/etc/modutils/arch) which contains information for special architectures. update-modules determines the architecture and selects which file it must use.
There are two types of file you can put in /etc/modutils: normal files and exectuable files. Normal files contain standard modules configuration information, as described in modules.conf(5). Files with the suffix .chandev contain the module options, as described in chandev(8)?. The special file 0chandev.chandev contains the channel device layer specific options. Executable files are executed and their output is used as extra configuration information. Error messages sent to stderr are not redirected.
update-modules will ignore files that match the following regular expression: