[ipxe-devel] Handling errors in scripts

Ty Christensen tyc at mastermindpro.com
Sat Nov 24 17:26:20 UTC 2012


Does anyone have any idea why such simple functions are broken?  It's easy to test...just shut down the DHCP server on your physical network segment and watch as a script that is supposed to retry the DHCP request...doesn't.  It exits the script every time.


-----Original Message-----
From: ipxe-devel-bounces at lists.ipxe.org [mailto:ipxe-devel-bounces at lists.ipxe.org] On Behalf Of Ty Christensen
Sent: Wednesday, November 14, 2012 4:38 PM
To: Thomas Miletich
Cc: ipxe-devel at lists.ipxe.org
Subject: Re: [ipxe-devel] Handling errors in scripts

Did a fresh git sync and compiled undionly.kpxe.  Tried it, but got the same results.


-----Original Message-----
From: ipxe-devel-bounces at lists.ipxe.org [mailto:ipxe-devel-bounces at lists.ipxe.org] On Behalf Of Ty Christensen
Sent: Wednesday, November 14, 2012 3:25 PM
To: Thomas Miletich
Cc: ipxe-devel at lists.ipxe.org
Subject: Re: [ipxe-devel] Handling errors in scripts

I don't think so, at least it's not ancient.  I did a git checkout only a month ago.  I'll do a fresh download and see if that makes a difference, though.


-----Original Message-----
From: Thomas Miletich [mailto:thomas.miletich at gmail.com] 
Sent: Wednesday, November 14, 2012 3:19 PM
To: Ty Christensen
Cc: ipxe-devel at lists.ipxe.org
Subject: Re: [ipxe-devel] Handling errors in scripts

How recent is your iPXE version?

Could it be ancient enough to simply not support the new scripting features yet? It's always a good idea to try the most recent version anyway.

Thomas

On Thu, Nov 15, 2012 at 12:11 AM, Ty Christensen <tyc at mastermindpro.com> wrote:
> I posted on the forums about a problem with iPXE scripts and error handling, but Robin ultimately suggested I try here instead.  To see the forum post and problem details, go here:
> http://forum.ipxe.org/showthread.php?tid=6764
>
> The gist of the problem is that simple error handling within iPXE scripts isn't working for me.  I've tried examples from the website, which make sense to me, but errors in the DHCP or sanboot steps of my script do not invoke the goto's or other error handling.  iPXE exits entirely back to the BIOS.
>
> I can't tell why such simple procedures in the script are not being handled correctly.  Does anyone know how to troubleshoot this?
>
> Thanks,
> Ty
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
_______________________________________________
ipxe-devel mailing list
ipxe-devel at lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
_______________________________________________
ipxe-devel mailing list
ipxe-devel at lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel



More information about the ipxe-devel mailing list