[syslinux] SYSLINUX 3.31-pre3 released

H. Peter Anvin hpa at zytor.com
Fri Sep 22 09:39:35 PDT 2006


Marcel Ritter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> H. Peter Anvin schrieb:
>> After thinking a bit of the multi-file support in 3.31-pre1, and
>> considering a few users' feedback on the subject, I have made a
>> couple of changes:
>>
>> 1. The dummy filename ~ can be used to mean "the main config file".
>>  2. There is a MENU INCLUDE directive now.
>>
>> -hpa
> Hi!
> 
> I like the new vesamenu stuff and the "MENU INCLUDE" option - it
> simplifies menu
> setup considerably!
> 
> However, I found some odd behaviour, that looks like a bug to me:
> 
> I'm trying to include a "go back to main menu" file:
> 
> - ----------------------------------------------------------
> LABEL mainmenu
>   MENU DEFAULT
>   MENU LABEL ^0 Back to Main Menu
>   KERNEL vesamenu.c32
> - ----------------------------------------------------------
> 
> in my basic config file:
> - ----------------------------------------------------------
> MENU TITLE DOS Boot Floppies
> MENU INCLUDE pxelinux.cfg/menu.inc
> 
> LABEL dos-3com
>   MENU LABEL ^1 DOS 3com Bootfloppy
>   KERNEL memdisk
>   APPEND initrd=/dos/dos_3com.img floppy
> 
> LABEL novell
>   MENU LABEL ^2 Novell something
>   KERNEL memdisk
>   APPEND initrd=/dos/288_ncp.img
> 
> MENU INCLUDE pxelinux.cfg/main.inc
> - ----------------------------------------------------------
> 
> I'd expect a menu like:
> 
> 1 DOS 3com Bootfloppy
> 2 Novell something
> 0 Back to Main Menu
> 
> But I get:
> 
> 1 DOS 3com Bootfloppy
> 0 Back to Main Menu
> 2 Novell something
> 
> If I move the "MENU INCLUDE" option up and down - it's always the same:
> It's one position above then intended one. Am I missing something, or
> may this
> be a bug in the config file parsing code?

It sort of is... the "menu include" doesn't close the LABEL above it, 
and the inclusion is at the post-parsed level.

This should obviously be fixed.  I need to think very carefully about 
how to do that, though.

	-hpa




More information about the Syslinux mailing list