From fa5c4ca24b4aa12274f3aae5c06d23a995e49b40 Mon Sep 17 00:00:00 2001 From: followmsi Date: Tue, 21 Mar 2023 17:52:34 +0100 Subject: [PATCH] deb: Set /sys/block/mmcblk0/queue/add_random --- rootdir/etc/init.deb.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init.deb.rc b/rootdir/etc/init.deb.rc index 32f2e19..ba20d89 100644 --- a/rootdir/etc/init.deb.rc +++ b/rootdir/etc/init.deb.rc @@ -58,6 +58,10 @@ on early-boot # set RLIMIT_MEMLOCK to 64MB setrlimit 8 67108864 67108864 + # Flash storage isn't a good entropy source, and only causes locking + # overhead in the kernel. Turn it off. + write /sys/block/mmcblk0/queue/add_random 0 + # Busy loop to wait for devices booted by devstart_sh just in case device not ready exec - root root system -- /vendor/bin/init.qcom.devwait.sh