Merge "toolbox/modprobe: Load modules from /lib/modules based on page size" into main am: 441f39230e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3124933 Change-Id: I6a19514aa824ef775f03576a63b39790bca74451 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
e3a1b98495
1 changed files with 4 additions and 2 deletions
|
@ -245,8 +245,10 @@ extern "C" int modprobe_main(int argc, char** argv) {
|
|||
}
|
||||
free(kernel_dirs);
|
||||
|
||||
// Allow modules to be directly inside /lib/modules
|
||||
mod_dirs.emplace_back(LIB_MODULES_PREFIX);
|
||||
if (mod_dirs.empty() || getpagesize() == 4096) {
|
||||
// Allow modules to be directly inside /lib/modules
|
||||
mod_dirs.emplace_back(LIB_MODULES_PREFIX);
|
||||
}
|
||||
}
|
||||
|
||||
LOG(DEBUG) << "mode is " << mode;
|
||||
|
|
Loading…
Reference in a new issue