[syslinux] [patch 1/1] syslinux: add suport for com32 entries inthe menu
Sebastian Herbszt
herbszt at gmx.de
Thu Aug 18 14:03:46 PDT 2011
Cisneros, Jorge (George) wrote:
> Problem: The actual code only check for entries with kernel or linux, so this example will not work, this patch is to
> add support to gfxboot to detect the entry COM32 and use any module, in this case the module is chain.c32
> Version: Syslinux 4.04
>
> Example:
> UI gfxboot.c32
>
> LABEL boot_hd0
> MENU LABEL Boot from first hard drive
> COM32 chain.c32
> APPEND hd0
Can't we just add the following instead?
Sebastian
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index 35d180a..58fdc1b 100644
--- a/com32/gfxboot/gfxboot.c
+++ b/com32/gfxboot/gfxboot.c
@@ -381,6 +381,10 @@ int read_config_file(const char *filename)
continue;
}
+ if(!strcasecmp(s, "com32") && menu_ptr) {
+ continue;
+ }
+
if(!strcasecmp(s, "initrd") && menu_ptr) {
menu_ptr->initrd = strdup(t);
continue;
More information about the Syslinux
mailing list