Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 5814cec

Browse files
authored
Merge pull request #731 from jumpstarter-dev/backport-730-to-release-0.7
[Backport release-0.7] flashers: make dhcp failure flash retryable
2 parents a478403 + 87167a8 commit 5814cec

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/jumpstarter-driver-flashers/jumpstarter_driver_flashers

packages/jumpstarter-driver-flashers/jumpstarter_driver_flashers/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,10 @@ def _busybox(self):
828828
# make sure that the device is booted into the uboot console
829829
with self.uboot.reboot_to_console(debug=self._console_debug):
830830
# run dhcp discovery and gather details useful for later
831-
self._dhcp_details = self.uboot.setup_dhcp()
831+
try:
832+
self._dhcp_details = self.uboot.setup_dhcp()
833+
except (RuntimeError, ValueError) as e:
834+
raise FlashRetryableError(f"DHCP setup failed: {e}") from e
832835
self.logger.info(f"discovered dhcp details: {self._dhcp_details}")
833836

834837
# configure the environment necessary

0 commit comments

Comments
 (0)