Remove haveged from Generic AArch64 rootfs

Development on core packages and the distribution goes on in here.

Remove haveged from Generic AArch64 rootfs

Postby subraizada3 » Thu Dec 30, 2021 3:48 am

The Generic AArch64 tarball has haveged installed and enabled by default. As of 5.6, the kernel has some new mechanisms to generate its own entropy and haveged is no longer needed.

In fact, the haveged service does not even start up on Arch / ALARM because the systemd service file in recent versions disable it on kernel versions >=5.6. So haveged is completely useless in up-to-date Arch installs and can be removed from the generic tarball. The kernel boots normally and the system functions normally without haveged.

https://github.com/jirka-h/haveged/issues/57
(note in README) https://github.com/jirka-h/haveged

The main Arch Wiki also notes that haveged is obsolete: https://wiki.archlinux.org/title/Haveged

If you check systemctl status haveged on an Arch system it'll report that haveged.service never started because the kernel version was >=5.6. It seems that recent versions of haveged include a "kernel version < 5.6" condition in the upstream .service file:

https://github.com/jirka-h/haveged/blob/master/contrib/Fedora/haveged.service#L5

From a generic aarch64 rootfs I just downloaded and ran on an Odroid C4 today:
$this->bbcode_second_pass_code('', '
$ systemctl status haveged
* haveged.service - Entropy Daemon based on the HAVEGE algorithm
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Condition: start condition failed at Fri 2021-11-12 14:10:36 UTC; 1 month 17 days ago
')
subraizada3
 
Posts: 1
Joined: Sat Sep 28, 2013 1:40 am

Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 7 guests