gfxboot: fix loading of LABELs with non KERNEL or LINUX commands
authorSebastian Herbszt <herbszt@gmx.de>
Tue, 8 Dec 2009 20:38:52 +0000 (21:38 +0100)
committerSebastian Herbszt <herbszt@gmx.de>
Tue, 8 Dec 2009 20:38:52 +0000 (21:38 +0100)
Call syslinux_run_command() if menu_ptr->kernel or menu_ptr->linux are not set.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
com32/gfxboot/gfxboot.c

index c415bad..3937e30 100644 (file)
@@ -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