device_google_gs101/init.insmod.gs101.cfg
Daniel Mentz fe798d9f4f Use modprobe --all to load all modules in modules.load
Previously, we ran modprobe command for every .ko file listed in
init.insmod.*.cfg. Let's move to a different approach where we call
modprobe with the following command line.

modprobe -b --all=/vendor/lib/modules/modules.load

This will insmod all modules listed in modules.load except for those
that are mentioned in the blocklist at
/vendor/lib/modules/modules.blocklist

A common reason for a module to be on the blocklist is that it must only
be loaded under a certain condition like when a specific service is
launched.

Bug: 190652328
Change-Id: I37dfc83cbc90534243765f6985bc53f3fa83aef0
2021-06-23 05:10:36 +00:00

12 lines
460 B
INI

####################################################
# init.insmod.common.cfg #
# This file contains common kernel modules to load #
# at init time by init.insmod.sh script #
####################################################
# Load common kernel modules
# Modules here will be loaded *before* device specific modules
install_display_drivers
modprobe|-b *
# All common modules loaded
setprop|vendor.common.modules.ready