freeipa/ipatests/azure/scripts/wait-for-systemd.sh
Stanislav Levin 6c2db326f8 azure: coredump: Wait for systemd fully booted
Otherwise, 'Check for coredumps' task fails with:
```
Verifying        : samba-debugsource-2:4.14.4-0.fc34.x86_64             20/20
[Errno 2] No such file or directory: '/var/lib/dnf/rpmdb_lock.pid'
Finishing: Check for coredumps
```

This is due to systemd-tmpfiles(not ready yet).

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-05-25 10:45:49 +03:00

10 lines
120 B
Bash
Executable File

#!/bin/bash -eux
for i in $(seq 35)
do
systemctl is-active --quiet default.target && exit 0
sleep 5
done
exit 1