From b4753621f708d1c1817109b12d1a495db7edbe07 Mon Sep 17 00:00:00 2001 From: Sebastian Herbszt Date: Tue, 8 Dec 2009 21:38:52 +0100 Subject: [PATCH] gfxboot: fix loading of LABELs with non KERNEL or LINUX commands Call syslinux_run_command() if menu_ptr->kernel or menu_ptr->linux are not set. Signed-off-by: Sebastian Herbszt --- com32/gfxboot/gfxboot.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index c415bad..3937e30 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -732,7 +732,12 @@ void boot_entry(menu_t *menu_ptr, char *arg) file = menu_ptr->kernel; if(!file) file = menu_ptr->linux; - if(!file) return; + if(!file) { + gfx_done(); + asprintf(&cmd_buf, "%s %s", menu_ptr->label, arg); + syslinux_run_command(cmd_buf); + return; + } // first, load kernel -- 2.7.4