[ipxe-devel] script failure caused by adding one line
Robin Smidsrød
robin at smidsrod.no
Wed Apr 16 14:04:01 UTC 2014
You can use the syslog console (http://ipxe.org/console) in combination
with DEBUG=script, which should allow you to get the debug information
in your syslog, which is easier to trap during runtime.
Also, you might want this iseq line:
iseq ${vodserver} 6 && set bu http://10.109.0.165/ ||
If the iseq returns false I believe it will abort the script without the
|| at the end.
Michael: Correct me if I'm wrong.
-- Robin
On 15.04.2014 07:21, Larry Brigman wrote:
> Is there a way to set things up to find these script errors other than
> inspection?
>
>
> On Mon, Apr 14, 2014 at 8:41 PM, Ben Hildred <42656e at gmailcom
> <mailto:42656e at gmail.com>> wrote:
>
> the line you want is
> iseq ${vodserver} 6 && set bu http://10.109.0.165/
>
>
> On Mon, Apr 14, 2014 at 6:02 PM, Larry Brigman
> <larry.brigman at gmail.com <mailto:larry.brigman at gmail.com>> wrote:
>
> I'm finding it difficult to troubleshoot failing ipxe scripts.
> Even with DEBUG=script on I'm getting a message that states
> image too large to load
> and it ipxe jumps back to local boot without stopping a the
> prompts or executing
> the error paths
>
> Here is the script:
> -----------------------------------------
> #!ipxe
>
> :vod_menu
> menu Vod Server Install [installing to IP: ${netX/ip}]
> item --gap
> item --key 0 5.0.8 Vod Server 5.[0].8
> item --key 2 5.2.7 Vod Server 5.[2].7
> item 5.2.8 Vod Server 5.2.8
> item --key 3 5.3.2 Vod Server 5.[3].2
> item --key 4 5.4.0 Vod Server 5.[4].0
> item 5.4.1 Vod Server 5.4.1
> item 5.4.2 Vod Server 5.4.2
> item --key 5 5.5.0 Vod Server 5.[5].0
> item 6 Vod Server 5.5.0 on RHEL[6]
> choose vodserver || goto vod_error
> iseq vodserver 6 && set bu http://10.109.0.165/
> goto vodload
>
> :vod_error
> echo selection error in vod menu file
> prompt --key 0x02 --timeout 10000 Press Ctrl-B for the iPXE
> command line... && shell ||
> chain boot.ipxe ||
> echo Chaining back to main menu failed. Reverting to local boot.
> exit 0
>
> :vodload
> echo Loading VodServer ${vodserver} ....
> initrd ${base_url}${vodserver}/isolinux/initrd.img || goto
> vodload_error
> kernel ${base_url}${vodserver}/isolinux/vmlinuz
> ramdisk_size=32705 noipv6 dns=10.109.3.240
> ks=${base_url}bko/ks/nvs-${vodserver}.cfg nompath
> syslog=134.242.160.43 ksdevice=bootif BOOTIF=01-${netX/mac} ||
> goto vodload_error
> boot
>
> :vodload_error
> echo An error occurred during the vodload section
> prompt --key 0x02 --timeout 10000 Press Ctrl-B for the iPXE
> command line... && shell ||
> echo Reverting to local boot.
> exit 0
> ---------------------------------------------------------
> If I remove the iseq line or comment it out things work.
>
> I'm using git master to build undionly.kpxe which is getting
> chain loaded from the pxerom.
>
> I'm needing to switch the server url to a different server if a
> the selection is made but
> all of my old selection loads also break.
>
> Any clues provided would be great.
>
>
>
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org <mailto:ipxe-devel at lists.ipxe.org>
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
>
>
>
>
> --
> --
> Ben Hildred
> Automation Support Services
> 303 815 6721 <tel:303%20815%206721>
>
>
>
>
> _______________________________________________
> 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