[syslinux] Menu system bug - MENU DEFAULT not working

Matt Fleming matt at console-pimps.org
Tue Oct 9 04:03:39 PDT 2012


On Thu, 2012-09-06 at 23:04 +0200, Tomas M wrote:
> 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:

Tomas, thanks for the example config file.

Can you apply the following patch to 4.06-pre12 and see if your problem
is fixed?

diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index 0ac2564..431017f 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -392,7 +392,9 @@ static void record(struct menu *m, struct labeldata *ld, const char *append)
 	    break;
 	}
 
-	if (ld->menudefault && me->action == MA_CMD)
+	if (ld->menudefault && (me->action == MA_CMD ||
+				me->action == MA_GOTO ||
+				me->action == MA_GOTO_UNRES))
 	    m->defentry = m->nentries - 1;
     }
 






More information about the Syslinux mailing list