summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-09-18 12:50:32 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-18 12:50:32 -0700
commit0e7bd81c938611cfa4ebf44870668300a5bba875 (patch)
treee31f6330665b96a0ad157f13fafc6c269da1aeef /rootdir
parent3929efb9d480b8893eb3e95cd282dd161ab8fb12 (diff)
parent4f18183bd6d3d2ed5d698c176ecc239211bdb82e (diff)
downloadsystem_core-0e7bd81c938611cfa4ebf44870668300a5bba875.zip
system_core-0e7bd81c938611cfa4ebf44870668300a5bba875.tar.gz
system_core-0e7bd81c938611cfa4ebf44870668300a5bba875.tar.bz2
am 4f18183b: Merge "Initialize /dev/urandom earlier in boot." into klp-dev
* commit '4f18183bd6d3d2ed5d698c176ecc239211bdb82e': Initialize /dev/urandom earlier in boot.
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 3f7c89f..3a0491d 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -177,6 +177,9 @@ on post-fs-data
# We restorecon /data in case the userdata partition has been reset.
restorecon /data
+ # Avoid predictable entropy pool. Carry over entropy from previous boot.
+ copy /data/system/entropy.dat /dev/urandom
+
# Create dump dir and collect dumps.
# Do this before we mount cache so eventually we can use cache for
# storing dumps on platforms which do not have a dedicated dump partition.