Merge "Disable dm-verity hash prefetching."

This commit is contained in:
Treehugger Robot 2020-01-15 13:13:01 +00:00 committed by Gerrit Code Review
commit e4505960b9
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ on early-init
mkdir /linkerconfig/bootstrap 0755
mkdir /linkerconfig/default 0755
# Disable dm-verity hash prefetching, since it doesn't help performance
# Read more in b/136247322
write /sys/module/dm_verity/parameters/prefetch_cluster 0
# Generate ld.config.txt for early executed processes
exec -- /system/bin/linkerconfig --target /linkerconfig/bootstrap
chmod 644 /linkerconfig/bootstrap/ld.config.txt