Vincent Bernat a8ca51d73d oem-exoscale: make DHCP address retrieval more resilient
When retrievent the DHCP IP address (to get user data), two steps were
used: the first one waited for one lease file to become present and the
second one extracted and validated the server IP address. If for some
reason the second step failed, an empty IP was provided (and notably,
coreos-setup-environment.service never finishes correctly).

To avoid that, we combine the two steps into a loop: for each available
lease file, extract the IP and validate it. If it succeeds, return
it. If not continue. If nothing was found, restart the same process
after sleeping a bit.
2016-04-21 08:18:46 +02:00
Description
image build and composition scripts for Flatcar Container Linux
BSD-3-Clause 168 MiB
Languages
Shell 93%
Python 6.9%