Add a bbappend for rng-tools that disables jitter entropy generation
for virtio-all machines, as it provides little value in virtual
machines that are dependent on the host entropy anyways, and slows
their booting very significantly.
Bug-AGL: SPEC-4618
Change-Id: Ia61917253b69f37b003c617d4203c823dd51bb6c
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
(cherry picked from commit
ebeba2f0667d7195597d9131a12d880d503a399a)
--- /dev/null
+EXTRA_ARGS="-r /dev/hwrng -x jitter"
--- /dev/null
+require ${@bb.utils.contains('AGL_FEATURES', 'agldemo', 'rng-tools_agldemo.inc', '', d)}
--- /dev/null
+# Pick up modified default configuration for virtual machines
+# that disables jitter entropy source, as it is not useful when
+# the VMs are effectively driven by the host RNG via virtio-rng.
+# This also helps boot speed, as otherwise the guests have rngd
+# potentially somewhat pointlessly burning a lot of CPU on boot,
+# in addition to the host's own rngd.
+FILESEXTRAPATHS:prepend:virtio-all := "${THISDIR}/files:"