]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[cloud] Retry DHCP aggressively in AWS EC2
authorMichael Brown <mcb30@ipxe.org>
Tue, 20 Jul 2021 12:19:15 +0000 (13:19 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 20 Jul 2021 12:19:15 +0000 (13:19 +0100)
commit4d180be5175e176ec27680557c1d67536a847610
tree12cb4eb72fb08db15007930fbdd8f9145f995a12
parentc64dfff0a93b5f967ae21339313e61baf0b7a3a0
[cloud] Retry DHCP aggressively in AWS EC2

The DHCP service in EC2 has been observed to occasionally stop
responding for bursts of several seconds.  This can easily result in a
failed boot, since the current cloud boot script will attempt DHCP
only once.

Work around this problem by retrying DHCP in a fairly tight cycle
within the cloud boot script, and falling back to a reboot after
several failed DHCP attempts.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/cloud/aws.ipxe