From e7a6626bf77c11ec3e4733bbc2d18c64b5ae31fe Mon Sep 17 00:00:00 2001
From: Felix Matouschek <felix@matouschek.org>
Date: Sun, 5 Jun 2022 15:38:56 +0200
Subject: [PATCH] system.sh: Remove no longer needed haveged (#2090)

Starting from kernels 5.6 haveged is obsolete. Therefore remove it in
Ubuntu 22.04.

See https://github.com/jirka-h/haveged/issues/57
---
 setup/system.sh | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/setup/system.sh b/setup/system.sh
index 09fbc454..f2bfd9c6 100755
--- a/setup/system.sh
+++ b/setup/system.sh
@@ -117,9 +117,6 @@ apt_get_quiet autoremove
 
 # Install basic utilities.
 #
-# * haveged: Provides extra entropy to /dev/random so it doesn't stall
-#	         when generating random numbers for private keys (e.g. during
-#	         ldns-keygen).
 # * unattended-upgrades: Apt tool to install security updates automatically.
 # * cron: Runs background processes periodically.
 # * ntp: keeps the system time correct
@@ -134,7 +131,7 @@ apt_get_quiet autoremove
 echo Installing system packages...
 apt_install python3 python3-dev python3-pip python3-setuptools \
 	netcat-openbsd wget curl git sudo coreutils bc \
-	haveged pollinate openssh-client unzip \
+	pollinate openssh-client unzip \
 	unattended-upgrades cron ntp fail2ban rsyslog
 
 # ### Suppress Upgrade Prompts