Browse Source

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
changes/80/695080/3
Pierre Riteau 2 weeks ago
parent
commit
fc070c691e
2 changed files with 9 additions and 2 deletions
  1. +7
    -1
      tinyipa/build_files/bootlocal.sh
  2. +2
    -1
      tinyipa/build_files/finalreqs.lst

+ 7
- 1
tinyipa/build_files/bootlocal.sh View File

@@ -10,11 +10,17 @@ date
export HOME=/root

# Start SSHd
if [ -f /usr/local/etc/init.d/openssh ]; then
if [ -x /usr/local/etc/init.d/openssh ]; then
echo "Starting OpenSSH server:"
/usr/local/etc/init.d/openssh start
fi

# Start haveged
if [ -x /usr/local/sbin/haveged ]; then
echo "Starting haveged entropy daemon:"
/usr/local/sbin/haveged
fi

# Maybe save some RAM?
#rm -rf /tmp/builtin


+ 2
- 1
tinyipa/build_files/finalreqs.lst View File

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

Loading…
Cancel
Save