From d5c8981b53ef1200d93148909ce4d6f0d22996fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Lewi=C5=84ski?= Date: Mon, 8 Jun 2026 12:47:28 +0200 Subject: [PATCH] dasharo.ipxe: fail message within script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make iPXE itself print out an error if either of the network boot options fail, instead of quietly returning to the menu or passing the error for EDK2 to handle. Signed-off-by: Filip LewiƄski --- dasharo/dasharo.ipxe | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/dasharo/dasharo.ipxe b/dasharo/dasharo.ipxe index 4c03beb..f2031d0 100644 --- a/dasharo/dasharo.ipxe +++ b/dasharo/dasharo.ipxe @@ -15,23 +15,43 @@ choose --default boot --timeout 3000 target && goto ${target} # main menu options :boot -autoboot +autoboot || goto autoboot_failed goto MENU :dasharo -dhcp || -chain https://boot.dasharo.com/dts/dts.ipxe || -exit 1 +dhcp || goto dhcp_failed +chain https://boot.dasharo.com/dts/dts.ipxe || goto dts_failed +goto MENU :netbootxyz -dhcp || -chain https://boot.netboot.xyz/menu.ipxe || -exit 1 +dhcp || goto dhcp_failed +chain https://boot.netboot.xyz/menu.ipxe || goto netbootxyz_failed +goto MENU :shell echo You are now in iPXE shell. Type "exit" to go back to the main menu. shell || goto MENU +:autoboot_failed +echo Autoboot failed. +prompt Press any key to return to menu... +goto MENU + +:dhcp_failed +echo DHCP command failed. +prompt Press any key to return to menu... +goto MENU + +:dts_failed +echo Loading DTS failed. +prompt Press any key to return to menu... +goto MENU + +:netbootxyz_failed +echo Loading netboot.xyz failed. +prompt Press any key to return to menu... +goto MENU + autoboot