diff options
author | Chris Evich <cevich@redhat.com> | 2021-10-26 16:30:17 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-11-12 11:08:25 -0500 |
commit | 2b85684ad1d2de0f412831e6225c176e0519bca3 (patch) | |
tree | 5fe6263a22258bd2b1f2e3beec7e064733142937 /libpod/volume_internal.go | |
parent | 0e1f67b725088c4d7425f56e260ddbb44078d11b (diff) | |
download | podman-2b85684ad1d2de0f412831e6225c176e0519bca3.tar.gz podman-2b85684ad1d2de0f412831e6225c176e0519bca3.tar.bz2 podman-2b85684ad1d2de0f412831e6225c176e0519bca3.zip |
Fix systemd PID1 test
Previously this test used an ad-hoc timeout mechanism to synchronize
with output of the container ID. However, depending on runtime
conditions this may not correctly correspond with complete startup
of the systemd process. Consequently this test fails under some
conditions with an error like:
`System has not been booted with systemd as init system (PID 1). Can't
operate. Failed to connect to bus: Host is down`
Fix this by using the more appropriate `WaitContainerReady()`
against output from system startup, close to finalization. In this way,
the test status command cannot run until systemd is fully operational.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'libpod/volume_internal.go')
0 files changed, 0 insertions, 0 deletions