|
sh -c " sleep 1 && while true; do \ |
|
systemctl is-system-running | grep -E 'running|degraded' && break; \ |
I ran into a situation where systemd would forever report "initializing" on systemctl is-system-running, so the loop never finished, causing a hang.
Could you consider introducing a reasonable timeout for this loop? Maybe 30 seconds or so?
A hang is never desirable.