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 <[email protected]> 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 <[email protected]>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 >> [email protected] >> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel >> >> > > > -- > -- > Ben Hildred > Automation Support Services > 303 815 6721 >
_______________________________________________ ipxe-devel mailing list [email protected] https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel

