[syslinux] Trying to invoke menu.c32 programmatically.
H. Peter Anvin
hpa at zytor.com
Tue Sep 4 18:29:42 PDT 2007
Antonio Carlini wrote:
> I have a (very) modified menu system modelled on complex.c.
>
> Most stuff works as I would like but I want to invoke menu.c32
> with a specific config (basically I want to integrate the UBCD
> into my bootable disk).
>
> If I were doing this from a .cfg file I would have something like:
>
> LABEL ubcd_menu
> MENU LABEL ^U UBCD Menu
> KERNEL /boot/isolinux/menu.c32
> APPEND /UBCD/menus/main.cfg
>
> and it would all work nicely (and indeed those lines
> are from my /boot/isolinux/isolinux.cfg and do work nicely).
>
> However, when my program invokes runsyslinuxcmd(cmd)
> with (effectively) "/boot/isolinux/menu.c32 /UBCD/menus/main.cfg"
> it doesn't do what I want. It does find menu.c32 but it is invoked
> with my /boot/isolinux/isolinux.cfg, as though the argument
> had been completely lost.
>
That *should* have worked...
Normally what I would recommend is something like:
syslinux_run_kernel_image("menu.c32", "/UBCD/menus/main.cfg", 0,
IMAGE_TYPE_KERNEL);
Bugs, of course, do happen.
-hpa
More information about the Syslinux
mailing list