[syslinux] Menu system bug - MENU DEFAULT not working
Gene Cumm
gene.cumm at gmail.com
Thu Sep 6 13:31:59 PDT 2012
On Sep 6, 2012 3:54 PM, "Tomas M" <tomas at slax.org> wrote:
>
> To simplify everything, here is very small syslinux.cfg showing that
> MENU DEFAULT doesn't work for submenus correctly (at least for my case
> when I use GOTO). When the menu starts, the submenu test0 is shown,
> this is correct. If I choose OptionB from the menu, it should jump to
> test2 submenu with 2nd row default. It indeed switches to test2
> submenu, but menu default is ignored.
Inserting empty line breaks for clarity.
> UI vesamenu.c32
> PROMPT 0
>
> MENU BEGIN test0
> MENU START
> LABEL -
> MENU DEFAULT
> MENU LABEL OptionA
> MENU GOTO test1
> LABEL -
This is a non-unique LABEL. Did you try to actually make it unique?
> MENU LABEL OptionB
> MENU GOTO test2
> MENU END
>
> MENU BEGIN test1
> LABEL -
> MENU LABEL OptionA1
> MENU GOTO test0
> LABEL -
Same.
> MENU DEFAULT
> MENU LABEL OptionB1
> MENU GOTO test0
> MENU END
>
> MENU BEGIN test2
> LABEL -
> MENU LABEL OptionA2
> MENU GOTO test0
> LABEL -
Same.
> MENU DEFAULT
> MENU LABEL OptionB2
> MENU GOTO test0
> MENU END
LABELs should always be unique. "MENU LABEL"s are just descriptors.
--Gene
More information about the Syslinux
mailing list