[syslinux] Menu system bug - MENU DEFAULT not working
Tomas M
tomas at slax.org
Thu Sep 6 14:04:37 PDT 2012
Yes of course, as I wrote in my previous post, I tried unique labels,
it makes no change.
MENU DEFAULT just doesn't work. You can try it yourself, just use the
following config, and select the second row option (OptionB) ... It
should show a menu where the second row is default, but instead it
shows a menu with first row default:
UI vesamenu.c32
PROMPT 0
MENU BEGIN test0
MENU START
LABEL unique1
MENU DEFAULT
MENU LABEL OptionA
MENU GOTO test1
LABEL unique2
MENU LABEL OptionB
MENU GOTO test2
MENU END
MENU BEGIN test1
LABEL unique3
MENU LABEL OptionA1
MENU GOTO test0
LABEL unique4
MENU DEFAULT
MENU LABEL OptionB1
MENU GOTO test0
MENU END
MENU BEGIN test2
LABEL unique5
MENU LABEL OptionA2
MENU GOTO test0
LABEL unique6
MENU DEFAULT
MENU LABEL OptionB2
MENU GOTO test0
MENU END
Thank you for your thoughts.
Tomas M
On Thu, Sep 6, 2012 at 10:31 PM, Gene Cumm <gene.cumm at gmail.com> wrote:
> 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
> _______________________________________________
> Syslinux mailing list
> Submissions to Syslinux at zytor.com
> Unsubscribe or set options at:
> http://www.zytor.com/mailman/listinfo/syslinux
> Please do not send private replies to mailing list traffic.
>
More information about the Syslinux
mailing list