platform_system_core/toolbox
Will McVicker d278f1d018 toolbox/modprobe: Fix fallback path when mod_dirs is empty
Due to GKI, the kernel UTS release string will not always (if ever)
match the vendor's UTS release string that is used to create the
initramfs file structure -- /lib/modules/<vendor uname>. This causes
module load failures when `-d DIR` is omitted. To fix this, we can
include all of the versions under /lib/modules that match the kernel's
major and minor version instead of directly using the value of uname().
In addition, we can also support modules being loaded directly from
/lib/modules.

Test: verify GKI kernel + initramfs with different UTS strings
Test: verify GKI kernel + initramfs with modules directly in /lib/modules
Fixes: 8320778425 ("toolbox/modprobe: Fallback to /lib/modules/<uname> ")
Bug: 282917063
Bug: 254835242
Change-Id: I5368f5cff139ba3165323a6a91066be38bfa0736
2023-05-26 11:01:00 -07:00
..
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
generate-input.h-labels.py toolbox/generate-input.h-labels.py: python3. 2021-08-17 14:34:55 -07:00
getevent.c toolbox: getevent: disable stdout buffering 2019-01-15 16:42:59 +01:00
getprop.cpp newfs_msdos: switch to external/newfs_msdos. 2018-06-13 13:21:24 -07:00
modprobe.cpp toolbox/modprobe: Fix fallback path when mod_dirs is empty 2023-05-26 11:01:00 -07:00
MODULE_LICENSE_APACHE2 newfs_msdos: switch to external/newfs_msdos. 2018-06-13 13:21:24 -07:00
NOTICE newfs_msdos: switch to external/newfs_msdos. 2018-06-13 13:21:24 -07:00
OWNERS Update owners for modprobe.c 2021-04-01 12:42:21 -07:00
setprop.cpp toolbox: add setprop, start, and stop 2019-06-06 11:20:29 -07:00
start.cpp iorap: Remove toggling iorapd on/off when using 'start' command. 2020-11-16 18:45:47 +00:00
toolbox.c
tools.h toolbox: add modprobe 2019-08-06 13:58:13 -07:00