1
0
Fork 0

Verify haveged service is active in autopkgtests, skipped in containers.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Simon Chopin 2025-04-25 17:54:38 +02:00 committed by Daniel Baumann
parent e15cffc655
commit ebae0a651d
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,10 @@
#!/bin/sh
if systemd-detect-virt -qc; then
echo "haveged service will fail in (unprivileged) container, skipping test"
exit 77
fi
if ! systemctl is-active haveged; then
echo "haveged service is not active"
systemctl status haveged

View file

@ -1,5 +1,7 @@
Tests:
check-service,
Restrictions:
skippable,
Tests:
run-tests,