recovery init: add rngd to increase the quantity of entropy

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
This commit is contained in:
Tatiana Leon 2017-03-09 18:42:53 +01:00
parent 00d30ee9a0
commit d7da8794f1
2 changed files with 6 additions and 0 deletions

View File

@ -59,4 +59,5 @@ FILES_${PN} = "/"
RDEPENDS_${PN}_append_ccimx6 = " \
cryptsetup \
rng-tools \
"

View File

@ -417,6 +417,11 @@ mkdir -p /var/lock
# Set kernel console loglevel.
sysctl -q -w kernel.printk=4
if [ "$(is_nand)" = "no" ]; then
# Launch 'rngd' to feed random data to kernel entropy pool
mkdir -p /var/run && rngd
fi
# Start psplash.
psplash &