Fix IPA execution issues due to lack of entropy

While running TinyIPA stable/stein images in KVM virtual machines with
Tenks, we noticed that IPA would start but not execute further, which
appeared to be caused by a lack of entropy.

This patch installs haveged, a simple entropy daemon [1], into the
tinyipa ramdisk and starts it on boot, which resolves the issue.

While this problem was reproduced reliably with stable/stein and not
seen with stable/train or stable/rocky images, we will start running
haveged in all versions, for consistency. It adds less than 20 KiB to
the ramdisk.

[1] http://www.issihosts.com/haveged/

Change-Id: I7d47b7828733cc03c1ed6c370c451465a6d492b6
Story: 2006911
Task: 37554
This commit is contained in:
Pierre Riteau 2019-11-21 15:35:35 +01:00
parent 86f9d22592
commit fc070c691e
2 changed files with 9 additions and 2 deletions

View File

@ -10,11 +10,17 @@ date
export HOME=/root export HOME=/root
# Start SSHd # Start SSHd
if [ -f /usr/local/etc/init.d/openssh ]; then if [ -x /usr/local/etc/init.d/openssh ]; then
echo "Starting OpenSSH server:" echo "Starting OpenSSH server:"
/usr/local/etc/init.d/openssh start /usr/local/etc/init.d/openssh start
fi fi
# Start haveged
if [ -x /usr/local/sbin/haveged ]; then
echo "Starting haveged entropy daemon:"
/usr/local/sbin/haveged
fi
# Maybe save some RAM? # Maybe save some RAM?
#rm -rf /tmp/builtin #rm -rf /tmp/builtin

View File

@ -4,6 +4,7 @@ dmidecode.tcz
gdisk.tcz gdisk.tcz
glib2.tcz glib2.tcz
file.tcz file.tcz
haveged.tcz
hdparm.tcz hdparm.tcz
iproute2.tcz iproute2.tcz
ipv6-4.14.10-tinycore64.tcz ipv6-4.14.10-tinycore64.tcz
@ -16,4 +17,4 @@ raid-dm-4.14.10-tinycore64.tcz
scsi-4.14.10-tinycore64.tcz scsi-4.14.10-tinycore64.tcz
smartmontools.tcz smartmontools.tcz
udev-lib.tcz udev-lib.tcz
util-linux.tcz util-linux.tcz