Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35coreos-live/coreos-livepxe-rootfs: add in connectivity check before…
… downloading This should help us get around some race conditions on startup where we've seen curl exit with "No route to host" errors. This most likely happens because the Networking in the kernel is still being brought up (seen more in complex networking scenarios) and curl hits that error the first time it tries. Since "No route to host" isn't considered retryable, curl exits. Instead let's just verify we can get to the remote at all in an initial `curl --head` call. In this one we'll use --retry-all-errors so that we will retry all errors. Once the connectivity to the remote is verified then it should be safe to start downloading. (cherry picked from commit b4a6586)
- Loading branch information