Skip to content

initscript/network: try harder to get an IP

Martin Roukala requested to merge try_harder_to_get_ip into master

When running boot2container with a USB-based network adapter which can take a few seconds to get discovered by Linux, we have a race condition between getting bringing the interface up, and the enumeration being completed.

This patch retries bringing the interface up for up to 10 seconds, twice per second before failing the run. This should fix the race condition!

Merge request reports