diff options
author | Alistair Delva <adelva@google.com> | 2023-05-18 11:23:59 -0700 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2023-05-19 17:25:07 +0000 |
commit | 1dd6a146439d3063ae54954132b0d9805a7e4af9 (patch) | |
tree | c29ae63924445514c3358c30e58049720f6c920e | |
parent | f0e82298938e92351f76aa0560e6ed8b859dee2d (diff) | |
download | cuttlefish-1dd6a146439d3063ae54954132b0d9805a7e4af9.tar.gz |
Make sure zram is loaded on newer kernels
In android14, some kernels moved zram/zsmalloc to be GKI modules, and
removed the vendor module build. But only vendor modules are loaded
automatically by vendor.dlkm_loader, so "leaf" GKI modules like zram
are not, and we need to do it manually.
Bug: 279227085
Change-Id: I9eb882abf79a3c9e44d561e684658407ecc38891
Merged-In: I9eb882abf79a3c9e44d561e684658407ecc38891
-rw-r--r-- | shared/config/init.vendor.rc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/config/init.vendor.rc b/shared/config/init.vendor.rc index 83a52c40b..96d1fe80b 100644 --- a/shared/config/init.vendor.rc +++ b/shared/config/init.vendor.rc @@ -15,6 +15,8 @@ on early-init # start module load in the background start vendor.dlkm_loader + # specially load zram as it is a "leaf" GKI module + exec u:r:modprobe:s0 -- /system/bin/modprobe -a -d /system/lib/modules zram.ko on init # ZRAM setup |