Difference between revisions of "Menu.c32"

From Syslinux Wiki
Jump to: navigation, search
m (Menu.c32: "ui" replaces "default" directive and typo)
m (Update link.)
Line 46: Line 46:
  
 
= Menu examples =
 
= Menu examples =
* [http://labs.aobac.net/boot/menu.html menu.cgi - Dynamic syslinux menu generation] Example of CGI-based menu generation and netbooting over HTTP.
+
* [http://github.com/tai/pxe-menu menu.cgi - Dynamic syslinux menu generation] Example of CGI-based menu generation and netbooting over HTTP. [http://labs.aobac.net/boot/menu.html menu.cgi - older site]
 
* Add a link to your example here
 
* Add a link to your example here

Revision as of 23:22, 3 September 2012


About

menu.c32 is a comboot module for Syslinux that renders a menu on the screen.

Requirements

  • working Syslinux environment

Syntax

menu.c32 path/to/menu.cfg

The menu.cfg consists of a series of special additions to the normal syslinux config file.


Example

Here is an example menu.cfg file for booting:

( Note that since version 3.74, the default directive usage has changed. Use UI instead) ( See UI mode or Changes in 3.74 )

default menu.c32
prompt 0

MENU TITLE Sample Menu
MENU AUTOBOOT Starting SuperOS in # seconds
timeout 300
TOTALTIMEOUT 9000

label superLinuxOS
  MENU DEFAULT
  MENU LABEL SuperOS 5.3
  kernel linux.c32 path/kernel
  append initrd=path/initramfs.cgz root=/dev/ram0 rw quiet

label disk0
  localboot 0
  MENU LABEL Boot disk (0x80)

Further Reading

Menu examples