aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2009-12-08 21:38:52 +0100
committerSebastian Herbszt <herbszt@gmx.de>2009-12-08 21:38:52 +0100
commitb4753621f708d1c1817109b12d1a495db7edbe07 (patch)
tree32f00cfed0837e18be8a59dd6d94449059575909 /com32
parent9315750647b4ff1f323b4cfc20ca1a13ef74b634 (diff)
downloadsyslinux.git-b4753621f708d1c1817109b12d1a495db7edbe07.tar.gz
syslinux.git-b4753621f708d1c1817109b12d1a495db7edbe07.tar.xz
syslinux.git-b4753621f708d1c1817109b12d1a495db7edbe07.zip
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 <herbszt@gmx.de>
Diffstat (limited to 'com32')
-rw-r--r--com32/gfxboot/gfxboot.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index c415bad4..3937e305 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