From: Matt Fleming <matt at console-pimps.org> Date sent: Wed, 10 Oct 2012 10:32:07 +0100 Subject: Re: [syslinux] Menu system bug - MENU DEFAULT not working> On Tue, 2012-10-09 at 23:09 +0200, Tomas M wrote: > > > Where xxx is a *different* menu. I count 4. Are you able to reproduce > > > the problem with a simpler config file? > > > > yes, I sent simplified config to this list few weeks ago. > > It can be seen in the mailing list archive: > > http://www.syslinux.org/archives/2012-September/018012.html > > > > Thank you for the time you spend on this > > With that config I can reproduce the original bug you reported, where > the MENU DEFAULT directive is ignored, but I can't reproduce the random > default jumping around bug that happens with the config file you posted > yesterday (9th Oct). It's the random default bug that I think needs a > simpler config file. Is there any way that you can make the syslinux.cfg > you posted yesterday smaller? > > -- > Matt Fleming, Intel Open Source Technology Center >Maybe this (simpler and first) cfg is enough for testing: *** START SYSLINUX.CFG 1 *** UI menu.c32 PROMPT 0 MENU CLEAR MENU BEGIN 0000 LABEL - MENU DEFAULT MENU LABEL [ ] Persistent changes MENU GOTO 1000 MENU END MENU BEGIN 1000 LABEL - MENU DEFAULT MENU LABEL [*] Persistent changes MENU GOTO 0000 MENU END *** END SYSLINUX.CFG 1 *** The next (second) step would be something like: *** START SYSLINUX.CFG 2 *** UI menu.c32 PROMPT 0 MENU CLEAR MENU BEGIN 0000 LABEL - MENU DEFAULT MENU LABEL [ ] Persistent changes MENU GOTO 1000 LABEL - MENU LABEL [ ] Graphical desktop MENU GOTO 0101 MENU END MENU BEGIN 0001 LABEL - MENU LABEL [ ] Persistent changes MENU GOTO 1000 LABEL - MENU DEFAULT MENU LABEL [ ] Graphical desktop MENU GOTO 0101 MENU END MENU BEGIN 0100 LABEL - MENU DEFAULT MENU LABEL [ ] Persistent changes MENU GOTO 1100 LABEL - MENU LABEL [*] Graphical desktop MENU GOTO 0001 MENU END MENU BEGIN 0101 LABEL - MENU LABEL [ ] Persistent changes MENU GOTO 1100 LABEL - MENU DEFAULT MENU LABEL [*] Graphical desktop MENU GOTO 0001 MENU END MENU BEGIN 1000 LABEL - MENU DEFAULT MENU LABEL [*] Persistent changes MENU GOTO 0000 LABEL - MENU LABEL [ ] Graphical desktop MENU GOTO 1101 MENU END MENU BEGIN 1001 LABEL - MENU LABEL [*] Persistent changes MENU GOTO 0000 LABEL - MENU DEFAULT MENU LABEL [ ] Graphical desktop MENU GOTO 1101 MENU END MENU BEGIN 1100 LABEL - MENU DEFAULT MENU LABEL [*] Persistent changes MENU GOTO 0100 LABEL - MENU LABEL [*] Graphical desktop MENU GOTO 1001 MENU END MENU BEGIN 1101 LABEL - MENU LABEL [*] Persistent changes MENU GOTO 0100 LABEL - MENU DEFAULT MENU LABEL [*] Graphical desktop MENU GOTO 1001 MENU END *** END SYSLINUX.CFG 2 *** HTH.
Gert Hulselmans
2012-Oct-10 12:45 UTC
[syslinux] Menu system bug - MENU DEFAULT not working
LABEL names need to have an unique name. So "LABEL -" doesn't fit that. Greetings, - Gert 2012/10/10 Ady <ady-sf at hotmail.com>:> > From: Matt Fleming <matt at console-pimps.org> > Date sent: Wed, 10 Oct 2012 10:32:07 +0100 > > Subject: Re: [syslinux] Menu system bug - MENU DEFAULT not > working > >> On Tue, 2012-10-09 at 23:09 +0200, Tomas M wrote: >> > > Where xxx is a *different* menu. I count 4. Are you able to reproduce >> > > the problem with a simpler config file? >> > >> > yes, I sent simplified config to this list few weeks ago. >> > It can be seen in the mailing list archive: >> > http://www.syslinux.org/archives/2012-September/018012.html >> > >> > Thank you for the time you spend on this >> >> With that config I can reproduce the original bug you reported, where >> the MENU DEFAULT directive is ignored, but I can't reproduce the random >> default jumping around bug that happens with the config file you posted >> yesterday (9th Oct). It's the random default bug that I think needs a >> simpler config file. Is there any way that you can make the syslinux.cfg >> you posted yesterday smaller? >> >> -- >> Matt Fleming, Intel Open Source Technology Center >> > > Maybe this (simpler and first) cfg is enough for testing: > > *** START SYSLINUX.CFG 1 *** > > UI menu.c32 > PROMPT 0 > MENU CLEAR > > MENU BEGIN 0000 > LABEL - > MENU DEFAULT > MENU LABEL [ ] Persistent changes > MENU GOTO 1000 > MENU END > > MENU BEGIN 1000 > LABEL - > MENU DEFAULT > MENU LABEL [*] Persistent changes > MENU GOTO 0000 > MENU END > > *** END SYSLINUX.CFG 1 *** > > > > > The next (second) step would be something like: > > > > *** START SYSLINUX.CFG 2 *** > > UI menu.c32 > PROMPT 0 > > MENU CLEAR > > MENU BEGIN 0000 > LABEL - > MENU DEFAULT > MENU LABEL [ ] Persistent changes > MENU GOTO 1000 > LABEL - > MENU LABEL [ ] Graphical desktop > MENU GOTO 0101 > MENU END > > MENU BEGIN 0001 > LABEL - > MENU LABEL [ ] Persistent changes > MENU GOTO 1000 > LABEL - > MENU DEFAULT > MENU LABEL [ ] Graphical desktop > MENU GOTO 0101 > MENU END > > > MENU BEGIN 0100 > LABEL - > MENU DEFAULT > MENU LABEL [ ] Persistent changes > MENU GOTO 1100 > LABEL - > MENU LABEL [*] Graphical desktop > MENU GOTO 0001 > MENU END > > MENU BEGIN 0101 > LABEL - > MENU LABEL [ ] Persistent changes > MENU GOTO 1100 > LABEL - > MENU DEFAULT > MENU LABEL [*] Graphical desktop > MENU GOTO 0001 > MENU END > > > MENU BEGIN 1000 > LABEL - > MENU DEFAULT > MENU LABEL [*] Persistent changes > MENU GOTO 0000 > LABEL - > MENU LABEL [ ] Graphical desktop > MENU GOTO 1101 > MENU END > > MENU BEGIN 1001 > LABEL - > MENU LABEL [*] Persistent changes > MENU GOTO 0000 > LABEL - > MENU DEFAULT > MENU LABEL [ ] Graphical desktop > MENU GOTO 1101 > MENU END > > MENU BEGIN 1100 > LABEL - > MENU DEFAULT > MENU LABEL [*] Persistent changes > MENU GOTO 0100 > LABEL - > MENU LABEL [*] Graphical desktop > MENU GOTO 1001 > MENU END > > MENU BEGIN 1101 > LABEL - > MENU LABEL [*] Persistent changes > MENU GOTO 0100 > LABEL - > MENU DEFAULT > MENU LABEL [*] Graphical desktop > MENU GOTO 1001 > MENU END > > > *** END SYSLINUX.CFG 2 *** > > HTH. > _______________________________________________ > 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. >
Date sent: Wed, 10 Oct 2012 14:45:08 +0200 Subject: Re: [syslinux] Menu system bug - MENU DEFAULT not working> LABEL names need to have an unique name. > > So "LABEL -" doesn't fit that. > > Greetings, > - GertThe (unique) labels aspect was already presented before. Tomas tested it and it made no difference. The only thing I did now was to eliminate 1 or 2 of the available options so to shrink the cfg file as Matt requested from Tomas, hoping to save some time. When a new prerelease gets out (with the other pending issues too, I guess), I'll test it myself, with and without (unique) labels. Regards, Ady.
> On Tue, 2012-10-09 at 23:09 +0200, Tomas M wrote: > > > Where xxx is a *different* menu. I count 4. Are you able to reproduce > > > the problem with a simpler config file? > > > > yes, I sent simplified config to this list few weeks ago. > > It can be seen in the mailing list archive: > > http://www.syslinux.org/archives/2012-September/018012.html > > > > Thank you for the time you spend on this > > With that config I can reproduce the original bug you reported, where > the MENU DEFAULT directive is ignored, but I can't reproduce the random > default jumping around bug that happens with the config file you posted > yesterday (9th Oct). It's the random default bug that I think needs a > simpler config file. Is there any way that you can make the syslinux.cfg > you posted yesterday smaller? > > -- > Matt Fleming, Intel Open Source Technology Center >Hi Matt, I can only test prereleases (not merge commits), but here is a very simplified menu (with unique labels this time). *** START SYSLINUX.CFG *** UI menu.c32 MENU BEGIN 00_1 LABEL 00_1_1 MENU DEFAULT MENU LABEL [ ] Persistent changes MENU GOTO 10_1 LABEL 00_1_2 MENU LABEL [ ] Graphical desktop MENU GOTO 01_2 MENU END MENU BEGIN 00_2 LABEL 00_2_1 MENU LABEL [ ] Persistent changes MENU GOTO 10_1 LABEL 00_2_2 MENU DEFAULT MENU LABEL [ ] Graphical desktop MENU GOTO 01_2 MENU END MENU BEGIN 10_1 LABEL 10_1_1 MENU DEFAULT MENU LABEL [X] Persistent changes MENU GOTO 00_1 LABEL 10_1_2 MENU LABEL [ ] Graphical desktop MENU GOTO 11_2 MENU END MENU BEGIN 10_2 LABEL 10_2_1 MENU LABEL [X] Persistent changes MENU GOTO 00_1 LABEL 10_2_2 MENU DEFAULT MENU LABEL [ ] Graphical desktop MENU GOTO 11_2 MENU END MENU BEGIN 01_1 LABEL 01_1_1 MENU DEFAULT MENU LABEL [ ] Persistent changes MENU GOTO 11_1 LABEL 01_1_2 MENU LABEL [X] Graphical desktop MENU GOTO 00_2 MENU END MENU BEGIN 01_2 LABEL 01_2_1 MENU LABEL [ ] Persistent changes MENU GOTO 11_1 LABEL 01_2_2 MENU DEFAULT MENU LABEL [X] Graphical desktop MENU GOTO 00_2 MENU END MENU BEGIN 11_1 LABEL 11_1_1 MENU DEFAULT MENU LABEL [X] Persistent changes MENU GOTO 01_1 LABEL 11_1_2 MENU LABEL [X] Graphical desktop MENU GOTO 10_2 MENU END MENU BEGIN 11_2 LABEL 00_2_1 MENU LABEL [X] Persistent changes MENU GOTO 01_1 LABEL 11_2_2 MENU DEFAULT MENU LABEL [X] Graphical desktop MENU GOTO 10_2 MENU END *** END SYSLINUX.CFG *** With the (pre)releases already out, I am able to reproduce both issues. To replicate the seemingly random default selection (using the above very simplified menu): 1_ Choose the first submenu. 2_ Select the second entry and press [ENTER]. 3_ Keep selecting (when needed) and pressing [ENTER] on the second entry each time. By the third (or so) selection (arrow key and then [ENTER]) of the same second entry, the default selection turns "automatically" to be that second entry (as if the "menu default" would finally start "pitching in"). At that point, the arrow key is not needed and by pressing [ENTER] the same second entry is selected by default. Strangely, after the second entry is "automatically" selected by default, if I press [ESC] to return to the main parent menu, and again I select the same first submenu I selected before, the same second entry is still the default entry (which shouldn't be). Since the number of submenu _levels_ are limited (AFAICR), I wonder if some kind of limit is also affecting "MENU GOTO", which makes it act this way. HTH, Ady.