Maintenance: Fixed packager.io RHEL scenario skipping the boot wait before systemd is reachable.

This commit is contained in:
Florian Liebe
2026-10-06 09:57:42 +02:00
parent 9f8f2388e7
commit 416fe41626

View File

@@ -2,8 +2,20 @@
set -eu
# Reports "degraded" inside containers, which is fine once boot has finished.
systemctl is-system-running --wait || true
# systemd is not reachable yet right after container start, and reports "degraded" inside
# containers once boot has finished.
booted=false
for _ in $(seq 60); do
case "$(systemctl is-system-running 2>/dev/null || true)" in
running|degraded) booted=true; break ;;
esac
sleep 1
done
if [ "$booted" != true ]; then
echo "systemd did not finish booting within 60 seconds." >&2
exit 1
fi
dnf install -y zammad