Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef58a1d2 authored by Will McVicker's avatar Will McVicker
Browse files

toolbox/modprobe: update kernel version directory filter

For android15-6.6 and later kernels, for 4kb page size kernel variants
include the substring "-4k". The 16kb page size kernels omit this
substring. So update modprobe to check for the `-4k` substring when the
kernel modules are under the folder `/lib/modules/$UTS_RELEASE` for
android15-6.6 and later.

This fixes loading pkvm modules when booting kernel images packaged from
the kernel tree. For Android platform images, the kernel modules are
directly under `/lib/modules` and therefore _pgagnostic targets are not
affected by this.

Test: boot sb3 with v6.1
Test: boot sb3 with v6.12 and 16kb pages
Bug: 340631213
Change-Id: I657ec9cf5cefd7d9831a7f5d2453fb21acc6d3be
parent f2bb4d17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment