[syslinux] INCLUDE is broken in pxelinux/menu.c32 3.85

Mike Coleman tutufan at gmail.com
Thu Apr 1 18:26:45 PDT 2010


On Thu, Apr 1, 2010 at 11:59 AM, H. Peter Anvin <hpa at zytor.com> wrote:
> Well, I can't reproduce this, either over TFTP or HTTP.  It Just
> Works[TM] for me.

Okay, I was able to put together a cut-down test case.  This set of
files causes an infinite loop.  I can scroll downward on the main menu
indefinitely.  The subcall to the submenu is not relevant to the
bug--I just include it so that I can reload the main menu without
having to redo the pxe boot from scratch.  It's the include that
triggers the bug.

The gpxelinux script:
#!gpxe
echo gpxelinux boot from http://my-host-123/pxe/ ...
set use-cached 1
dhcp net0
set 210:string http://my-host-123/pxe/
imgload pxelinux.0
boot pxelinux.0
echo gpxelinux boot failed

The main config file:
DEFAULT menu.c32
PROMPT 0
MENU MARGIN 2
MENU TITLE main menu

LABEL generated-menu
        MENU LABEL call bug menu
        KERNEL menu.c32
        APPEND pxelinux.cfg/bug

MENU SEPARATOR

label item1
  MENU LABEL item1
  kernel item1

MENU SEPARATOR
INCLUDE pxelinux.cfg/bug
MENU SEPARATOR


The 'bug' submenu:
PROMPT 0
MENU MARGIN 2
MENU TITLE bug-submenu

label bug-1
  MENU LABEL bug-1
  KERNEL bug-1

MENU SEPARATOR

LABEL bug-return-mainmenu
  MENU LABEL return to main menu
  KERNEL menu.c32
  APPEND ~

--Mike




More information about the Syslinux mailing list