From 01186e458af80f3e3ce86e1dc83cbabccd7a5d87 Mon Sep 17 00:00:00 2001 From: jalr Date: Fri, 21 Jun 2019 17:16:36 +0200 Subject: [PATCH] Add haveged to initramfs --- packer/debian-buster.json | 2 +- packer/initramfs/labsync | 2 ++ packer/initramfs/labsync-prereqs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packer/debian-buster.json b/packer/debian-buster.json index 1b64277..7e60f8c 100644 --- a/packer/debian-buster.json +++ b/packer/debian-buster.json @@ -73,7 +73,7 @@ "echo overlay >> /etc/initramfs-tools/modules", "echo 'RESUME=none' > /etc/initramfs-tools/conf.d/resume", "mkdir /usr/local/boot", - "apt-get -f -y install aria2 linux-image-amd64 lvm2", + "apt-get -f -y install aria2 linux-image-amd64 lvm2 haveged", "cp $(find /boot/ -name 'initrd.img-*' | sort -V | tail -n 1) '/tmp/images/{{user `initramfs_file`}}'", "cp $(find /boot/ -name 'vmlinuz-*' | sort -V | tail -n 1) '/tmp/images/{{user `linux_file`}}'" ] diff --git a/packer/initramfs/labsync b/packer/initramfs/labsync index d001a54..2b92337 100755 --- a/packer/initramfs/labsync +++ b/packer/initramfs/labsync @@ -92,6 +92,8 @@ labsync_configure_dns() { labsync_mount_root() { + haveged + export PATH="/usr/local/bin:$PATH" [ "$labsync_debug" = 1 ] && set -x sed -i 's/use_lvmetad = 1/use_lvmetad = 0/' /etc/lvm/lvm.conf diff --git a/packer/initramfs/labsync-prereqs b/packer/initramfs/labsync-prereqs index 8345c6d..bcd57c0 100755 --- a/packer/initramfs/labsync-prereqs +++ b/packer/initramfs/labsync-prereqs @@ -11,6 +11,7 @@ case $1 in copy_exec /sbin/mke2fs copy_exec /sbin/sfdisk copy_exec /usr/bin/aria2c + copy_exec /usr/sbin/haveged copy_file cert /etc/ssl/certs/ca-certificates.crt exit 0 ;;